test(cloudfunc) getTitle

This commit is contained in:
coderaiser 2017-07-26 12:05:48 +03:00
parent cf36456303
commit 98de9c6bfd
2 changed files with 16 additions and 2 deletions

View file

@ -53,7 +53,7 @@ let Expect =
'</span>' +
'</div>';
test('render', (t) => {
test('cloudfunc: render', (t) => {
const paths = {};
const filesList = TMPL_PATH
.map((name) => {
@ -144,3 +144,17 @@ test('cloudfunc: formatMsg', (t) => {
t.end();
});
test('cloudfunc: getTitle', (t) => {
const result = CloudFunc.getTitle();
t.equal(result, 'Cloud Commander - /');
t.end();
});
test('cloudfunc: getTitle', (t) => {
const result = CloudFunc.getTitle('/hello/world');
t.equal(result, 'Cloud Commander - /hello/world');
t.end();
});