mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(route) keys panel: show
This commit is contained in:
parent
af70eb5ee6
commit
81f4a207a7
2 changed files with 35 additions and 18 deletions
|
|
@ -148,7 +148,7 @@ test('cloudcmd: route: buttons: one panel mode: move', (t) => {
|
|||
});
|
||||
});
|
||||
|
||||
test('cloudcmd: route: keys panel', (t) => {
|
||||
test('cloudcmd: route: keys panel: hide', (t) => {
|
||||
const config = {
|
||||
showKeysPanel: false
|
||||
};
|
||||
|
|
@ -163,6 +163,21 @@ test('cloudcmd: route: keys panel', (t) => {
|
|||
});
|
||||
});
|
||||
|
||||
test('cloudcmd: route: keys panel', (t) => {
|
||||
const config = {
|
||||
showKeysPanel: true
|
||||
};
|
||||
|
||||
before({config}, (port, after) => {
|
||||
getStr(`http://localhost:${port}/`)
|
||||
.then((result) => {
|
||||
t.notOk(/keyspanel hidden/.test(result), 'should show keyspanel');
|
||||
t.end();
|
||||
after();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
test('cloudcmd: route: no index', (t) => {
|
||||
const name = path.join(__dirname, '../../dist/index.html');
|
||||
const nameAfter = path.join(__dirname, '../../dist/index1.html');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue