提交 158a9934 编写于 作者: L liuxiaohang

fix(test): 修复console.spec.js在window下路径处理错误

上级 8ca27825
const isWin = /^win/.test(process.platform)
const normalizePath = path => (isWin ? path.replace(/\\/g, '/') : path)
const normalizePath = path => (isWin ? path.split(':')[1].replace(/\\/g, '/') : path)
const METHODS = ['error', 'warn', 'info', 'log', 'debug']
const FORMAT_LOG = '__f__'
......@@ -51,4 +51,4 @@ module.exports = function ({
}
}
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册