mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(package) mellow v3.0.0
This commit is contained in:
parent
9b9070b69b
commit
e3cac1a892
3 changed files with 5 additions and 5 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
const mellow = require('mellow');
|
||||
|
||||
module.exports = (dir, root) => {
|
||||
return mellow.pathToWin(dir, root || '/');
|
||||
return mellow.webToWin(dir, root || '/');
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue