chore(cloudcmd) lint

This commit is contained in:
coderaiser 2021-12-04 01:21:02 +02:00
parent bd5a8afdd5
commit efb686c332
12 changed files with 43 additions and 29 deletions

View file

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