mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(route) buttons: console
This commit is contained in:
parent
671101d201
commit
132bfc5d05
1 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue