test(cloudfunc) getPathLink

This commit is contained in:
coderaiser 2017-08-02 12:20:58 +03:00
parent b695420114
commit 7cb681f293
2 changed files with 15 additions and 0 deletions

View file

@ -199,3 +199,17 @@ test('cloudfunc: getHeaderField', (t) => {
t.end();
});
test('cloudfunc: getPathLink: no url', (t) => {
t.throws(CloudFunc.getPathLink, 'should throw when no url');
t.end();
});
test('cloudfunc: getPathLink: no template', (t) => {
const url = 'http://abc.com';
const prefix = '';
const fn = () => CloudFunc.getPathLink(url, prefix);
t.throws(fn, 'should throw when no template');
t.end();
});