chore(cloudcmd) add dangle-comma

This commit is contained in:
coderaiser 2019-02-01 18:26:09 +02:00
parent 4447d43c89
commit ea08b92e8b
69 changed files with 242 additions and 242 deletions

View file

@ -16,7 +16,7 @@ const {
makeColor,
getMessage,
getDescription,
logWraped
logWraped,
} = log;
const omitList = [
@ -72,7 +72,7 @@ function getHost(socket) {
const {
name,
port,
color
color,
} = socket.handshake.query;
if (!name)

View file

@ -16,7 +16,7 @@ test('distribute: export', async (t) => {
};
const {port, done} = await connect({
config: defaultConfig
config: defaultConfig,
});
const url = `http://localhost:${port}/distribute?port=${1111}`;
@ -49,7 +49,7 @@ test('distribute: export: config', async (t) => {
};
const {port, done} = await connect({
config: defaultConfig
config: defaultConfig,
});
const url = `http://localhost:${port}/distribute?port=${1111}`;

View file

@ -21,7 +21,7 @@ const {
stringToRGB,
getMessage,
getDescription,
logWraped
logWraped,
} = log;
const equal = (a, b) => `${a}=${b}`;
@ -54,7 +54,7 @@ const canceled = (f) => f(null, {
});
const done = wraptile((fn, store) => fn(null, {
status: store()
status: store(),
}));
const emitAuth = wraptile((importUrl, socket) => {

View file

@ -16,7 +16,7 @@ test('distribute: import: canceled', async (t) => {
import: false,
importListen: false,
log: false,
}
},
});
const {status} = await distribute.import();
@ -34,7 +34,7 @@ test('distribute: import: received: no error', async (t) => {
importListen: false,
export: true,
log: false,
}
},
});
config('importUrl', `http://localhost:${port}`);
@ -57,7 +57,7 @@ test('distribute: import: received', async (t) => {
export: true,
importListen: false,
log: false,
}
},
});
config('importUrl', `http://localhost:${port}`);
@ -79,7 +79,7 @@ test('distribute: import: received: auth: reject', async (t) => {
export: true,
importListen: false,
log: false,
}
},
});
config('importUrl', `http://localhost:${port}`);
@ -101,7 +101,7 @@ test('distribute: import: received: auth: accept', async (t) => {
export: true,
importListen: false,
log: false,
}
},
});
config('importUrl', `http://localhost:${port}`);
@ -121,7 +121,7 @@ test('distribute: import: received: no name', async (t) => {
export: true,
importListen: false,
log: false,
}
},
});
config('importUrl', `http://localhost:${port}`);
@ -140,7 +140,7 @@ test('distribute: import: error', async (t) => {
export: false,
importListen: false,
log: false,
}
},
});
config('importUrl', `http://localhost:0`);
@ -162,7 +162,7 @@ test('distribute: import: config:change: no export', async (t) => {
export: false,
importListen: true,
log: false,
}
},
});
const {status} = await distribute.import({

View file

@ -15,7 +15,7 @@ test('distribute: log: getMessage', (t) => {
test('distribute: log: getMessage: message', (t) => {
const message = 'hello';
const result = log.getMessage({
message
message,
});
t.equal(result, message, 'should equal');