mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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 function wp (p) {
|
||||
export function wp (p = '') {
|
||||
/* istanbul ignore if */
|
||||
if (isWindows) {
|
||||
return p.replace(/\\/g, '\\\\')
|
||||
@ -104,7 +104,7 @@ export function wp (p) {
|
||||
return p
|
||||
}
|
||||
|
||||
export function wChunk (p) {
|
||||
export function wChunk (p = '') {
|
||||
/* istanbul ignore if */
|
||||
if (isWindows) {
|
||||
return p.replace(/\//g, '\\\\')
|
||||
|
Loading…
Reference in New Issue
Block a user