mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix tests
This commit is contained in:
parent
f933dd1f32
commit
192c25e3e8
@ -96,7 +96,7 @@ export function isPureObject (o) {
|
|||||||
|
|
||||||
export const isWindows = /^win/.test(process.platform)
|
export const isWindows = /^win/.test(process.platform)
|
||||||
|
|
||||||
export function wp (p) {
|
export function wp (p = '') {
|
||||||
/* istanbul ignore if */
|
/* istanbul ignore if */
|
||||||
if (isWindows) {
|
if (isWindows) {
|
||||||
return p.replace(/\\/g, '\\\\')
|
return p.replace(/\\/g, '\\\\')
|
||||||
@ -104,7 +104,7 @@ export function wp (p) {
|
|||||||
return p
|
return p
|
||||||
}
|
}
|
||||||
|
|
||||||
export function wChunk (p) {
|
export function wChunk (p = '') {
|
||||||
/* istanbul ignore if */
|
/* istanbul ignore if */
|
||||||
if (isWindows) {
|
if (isWindows) {
|
||||||
return p.replace(/\//g, '\\\\')
|
return p.replace(/\//g, '\\\\')
|
||||||
|
Loading…
Reference in New Issue
Block a user