fix tests

This commit is contained in:
Pooya Parsa 2017-08-25 17:41:13 +04:30
parent f933dd1f32
commit 192c25e3e8

View File

@ -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, '\\\\')