From e3cac1a892642dc3ee74fcff892ed7896f8db439 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 21 Jan 2021 16:30:26 +0200 Subject: [PATCH] feature(package) mellow v3.0.0 --- package.json | 2 +- server/root.js | 2 +- server/root.spec.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e1ec6146..b2450292 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/server/root.js b/server/root.js index fcbfcf7e..105028ed 100644 --- a/server/root.js +++ b/server/root.js @@ -3,6 +3,6 @@ const mellow = require('mellow'); module.exports = (dir, root) => { - return mellow.pathToWin(dir, root || '/'); + return mellow.webToWin(dir, root || '/'); }; diff --git a/server/root.spec.js b/server/root.spec.js index 300cb234..368ea6e5 100644 --- a/server/root.spec.js +++ b/server/root.spec.js @@ -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(); });