diff --git a/.eslintrc.js b/.eslintrc.js index 9e542834..85c5eacd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -17,7 +17,7 @@ module.exports = { extends: [ 'plugin:node/recommended', ], - },{ + }, { files: ['bin/cloudcmd.js'], rules: { 'no-console': 'off', diff --git a/server/distribute/import.js b/server/distribute/import.js index 6b0191e8..792114e1 100644 --- a/server/distribute/import.js +++ b/server/distribute/import.js @@ -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}`), diff --git a/server/distribute/import.spec.js b/server/distribute/import.spec.js index 2b77c52a..51f82de1 100644 --- a/server/distribute/import.spec.js +++ b/server/distribute/import.spec.js @@ -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(); }); diff --git a/server/rest/index.spec.js b/server/rest/index.spec.js index c9d4ff77..bd0c9645 100644 --- a/server/rest/index.spec.js +++ b/server/rest/index.spec.js @@ -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(); }); diff --git a/test/rest/pack.js b/test/rest/pack.js index a22966d8..aff32c61 100644 --- a/test/rest/pack.js +++ b/test/rest/pack.js @@ -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);