test(route) buttons: console

This commit is contained in:
coderaiser 2017-09-27 13:44:18 +03:00
parent 671101d201
commit 132bfc5d05

View file

@ -58,6 +58,21 @@ test('cloudcmd: route: buttons: no console', (t) => {
});
});
test('cloudcmd: route: buttons: console', (t) => {
const config = {
console: true,
};
before({config}, (port, after) => {
getStr(`http://localhost:${port}/`)
.then((result) => {
t.notOk(/icon-console none/.test(result), 'should not hide console');
t.end();
after();
});
});
});
test('cloudcmd: route: buttons: no terminal', (t) => {
const config = {
terminal: false