mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-04 05:33:10 +00:00
chore: lint
This commit is contained in:
parent
f1279666b5
commit
4717e035ee
173 changed files with 1388 additions and 1627 deletions
|
|
@ -15,7 +15,9 @@ test('cloudcmd: console: enabled', async (t) => {
|
|||
console: true,
|
||||
};
|
||||
|
||||
const {port, done} = await connect({config});
|
||||
const {port, done} = await connect({
|
||||
config,
|
||||
});
|
||||
const socket = io(`http://localhost:${port}/console`);
|
||||
|
||||
socket.emit('auth', configFn('username'), configFn('password'));
|
||||
|
|
@ -34,7 +36,9 @@ test('cloudcmd: console: disabled', async (t) => {
|
|||
console: false,
|
||||
};
|
||||
|
||||
const {port, done} = await connect({config});
|
||||
const {port, done} = await connect({
|
||||
config,
|
||||
});
|
||||
const socket = io(`http://localhost:${port}/console`);
|
||||
|
||||
const [error] = await once(socket, 'connect_error');
|
||||
|
|
@ -45,4 +49,3 @@ test('cloudcmd: console: disabled', async (t) => {
|
|||
t.equal(error.message, 'Invalid namespace', 'should emit error');
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue