From 192c25e3e8061284cb6f09c2c0a18fbac092edb2 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 25 Aug 2017 17:41:13 +0430 Subject: [PATCH] fix tests --- lib/common/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/utils.js b/lib/common/utils.js index bd98117dca..ad0b90bef2 100644 --- a/lib/common/utils.js +++ b/lib/common/utils.js @@ -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, '\\\\')