feature(package) mellow v3.0.0

This commit is contained in:
coderaiser 2021-01-21 16:30:26 +02:00
parent 9b9070b69b
commit e3cac1a892
3 changed files with 5 additions and 5 deletions

View file

@ -3,6 +3,6 @@
const mellow = require('mellow');
module.exports = (dir, root) => {
return mellow.pathToWin(dir, root || '/');
return mellow.webToWin(dir, root || '/');
};

View file

@ -10,10 +10,10 @@ const pathRoot = './root';
test('cloudcmd: root: mellow', (t) => {
const config = stub().returns('');
const pathToWin = stub();
const webToWin = stub();
const mellow = {
pathToWin,
webToWin,
};
mockRequire('mellow', mellow);
@ -29,7 +29,7 @@ test('cloudcmd: root: mellow', (t) => {
mockRequire.stopAll(pathConfig);
reRequire(pathRoot);
t.calledWith(pathToWin, [dir, dirRoot], 'should call mellow');
t.calledWith(webToWin, [dir, dirRoot], 'should call mellow');
t.end();
});