mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
bd5a8afdd5
commit
efb686c332
12 changed files with 43 additions and 29 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue