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
2a170584e2
commit
67138dab0f
5 changed files with 9 additions and 9 deletions
|
|
@ -17,7 +17,7 @@ module.exports = {
|
|||
extends: [
|
||||
'plugin:node/recommended',
|
||||
],
|
||||
},{
|
||||
}, {
|
||||
files: ['bin/cloudcmd.js'],
|
||||
rules: {
|
||||
'no-console': 'off',
|
||||
|
|
|
|||
|
|
@ -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}`),
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue