chore(cloudcmd) lint

This commit is contained in:
coderaiser 2017-05-11 18:07:28 +03:00
parent ae5cd0a99d
commit e0855bee7b
3 changed files with 7 additions and 8 deletions

View file

@ -81,11 +81,14 @@ const args = require('minimist')(argv.slice(2), {
}
});
if (args.version) {
if (args.version)
version();
} else if (args.help) {
else if (args.help)
help();
} else {
else
main();
function main() {
if (args.repl)
repl();

View file

@ -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();

View file

@ -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)];
};