test(console) rm enabled by default

This commit is contained in:
coderaiser 2018-08-24 19:11:51 +03:00
parent c1e5b5b1e5
commit 954db9ad07

View file

@ -9,25 +9,6 @@ const configPath = path.join(__dirname, '../..', 'server', 'config');
const {connect} = require('../before');
const configFn = require(configPath);
test('cloudcmd: console: enabled by default',async (t) => {
const config = {
auth: false
};
const {port, done} = await connect({config});
const socket = io(`http://localhost:${port}/console`);
socket.emit('auth', configFn('username'), configFn('password'));
socket.once('data', (data) => {
socket.close();
done();
t.equal(data, 'client #1 console connected\n', 'should emit data event');
t.end();
});
});
test('cloudcmd: console: enabled', async (t) => {
const config = {
console: true,