chore(cloudcmd) lint

This commit is contained in:
coderaiser 2020-04-10 14:31:55 +03:00
parent 2a170584e2
commit 67138dab0f
5 changed files with 9 additions and 9 deletions

View file

@ -17,7 +17,7 @@ module.exports = {
extends: [
'plugin:node/recommended',
],
},{
}, {
files: ['bin/cloudcmd.js'],
rules: {
'no-console': 'off',

View file

@ -114,7 +114,7 @@ module.exports = (config, options, fn) => {
);
const onConnect = emitAuth(importUrl, config, socket);
const onAccept = logWraped(isLog, importStr,`${connectedStr} to ${colorUrl}`);
const onAccept = logWraped(isLog, importStr, `${connectedStr} to ${colorUrl}`);
const onDisconnect = squad(
done(fn, statusStore),
logWraped(isLog, importStr, `${disconnectedStr} from ${colorUrl}`),

View file

@ -69,7 +69,7 @@ test('distribute: import: received', async (t) => {
const {status} = await distribute.import(configManager);
await done();
t.equal(status, 'received','should equal');
t.equal(status, 'received', 'should equal');
t.end();
});
@ -117,7 +117,7 @@ test('distribute: import: received: auth: accept', async (t) => {
const {status} = await distribute.import(configManager);
await done();
t.equal(status, 'received','should equal');
t.equal(status, 'received', 'should equal');
t.end();
});
@ -139,7 +139,7 @@ test('distribute: import: received: no name', async (t) => {
const {status} = await distribute.import(configManager);
await done();
t.equal(status, 'received','should equal');
t.equal(status, 'received', 'should equal');
t.end();
});
@ -163,7 +163,7 @@ test('distribute: import: error', async (t) => {
await done();
t.equal(status, 'connect_error','should equal');
t.equal(status, 'connect_error', 'should equal');
t.end();
});
@ -185,7 +185,7 @@ test('distribute: import: config:change: no export', async (t) => {
await done();
t.equal(status, 'connect_error','should equal');
t.equal(status, 'connect_error', 'should equal');
t.end();
});

View file

@ -30,7 +30,7 @@ test('rest: formatMsg: json', (t) => {
test('rest: getWin32RootMsg', (t) => {
const {message} = _getWin32RootMsg();
t.equal(message,'Could not copy from/to root on windows!', 'should return error');
t.equal(message, 'Could not copy from/to root on windows!', 'should return error');
t.end();
});

View file

@ -85,7 +85,7 @@ test('cloudcmd: rest: pack: tar: put: file', async (t) => {
body: getPackOptions(name),
});
const file = fs.createReadStream(join(__dirname,'..', name));
const file = fs.createReadStream(join(__dirname, '..', name));
const extract = tar.extract();
file.pipe(gunzip()).pipe(extract);