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
ae5cd0a99d
commit
e0855bee7b
3 changed files with 7 additions and 8 deletions
|
|
@ -71,7 +71,7 @@ test('cloudcmd: modules: wrong route', (t) => {
|
|||
});
|
||||
});
|
||||
|
||||
test('cloudcmd: modules: no', (t) => {
|
||||
test('cloudcmd: modules: no', (t) => {
|
||||
const fn = modulas();
|
||||
const url = '/json/modules.json';
|
||||
const send = sinon.stub();
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
'use strict';
|
||||
|
||||
const os = require('os');
|
||||
const path = require('path');
|
||||
|
||||
const test = require('tape');
|
||||
const readjson = require('readjson');
|
||||
|
||||
const diff = require('sinon-called-with-diff');
|
||||
const sinon = diff(require('sinon'));
|
||||
|
|
@ -13,8 +11,6 @@ const dir = path.join(__dirname, '..', '..', 'server');
|
|||
const pathConfig = path.join(dir, 'config');
|
||||
const pathRoot = `${dir}/root`;
|
||||
|
||||
const root = require(pathRoot);
|
||||
|
||||
const clean = (name) => {
|
||||
delete require.cache[require.resolve(name)];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue