mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(cloudfunc) getTitle
This commit is contained in:
parent
cf36456303
commit
98de9c6bfd
2 changed files with 16 additions and 2 deletions
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue