feature(contact) add ability to hide contact button with --no-contact (#125)

This commit is contained in:
Jörn Zaefferer 2017-07-28 11:36:58 +02:00 committed by coderaiser
parent 7147e0a85c
commit a5656d15b4
8 changed files with 39 additions and 2 deletions

View file

@ -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();
});
});
});