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

@ -109,7 +109,7 @@
"jonny": "^3.0.0",
"just-snake-case": "^1.1.0",
"markdown-it": "^12.0.0",
"mellow": "^2.0.0",
"mellow": "^3.0.0",
"minimist": "^1.2.0",
"nomine": "^4.0.0",
"object.omit": "^3.0.0",

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();
});