mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(contact) add ability to hide contact button with --no-contact (#125)
This commit is contained in:
parent
7147e0a85c
commit
a5656d15b4
8 changed files with 39 additions and 2 deletions
|
|
@ -85,3 +85,19 @@ test('cloudcmd: route: buttons: no config', (t) => {
|
|||
});
|
||||
});
|
||||
});
|
||||
|
||||
test('cloudcmd: route: buttons: no contact', (t) => {
|
||||
const config = {
|
||||
contact: false
|
||||
};
|
||||
|
||||
before({config}, (port, after) => {
|
||||
getStr(`http://localhost:${port}/`)
|
||||
.then((result) => {
|
||||
t.ok(/icon-contact none/.test(result), 'should hide contact');
|
||||
t.end();
|
||||
after();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue