chore: lint

This commit is contained in:
coderaiser 2023-07-09 12:43:24 +03:00
parent f1279666b5
commit 4717e035ee
173 changed files with 1388 additions and 1627 deletions

View file

@ -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();
});