mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(cloudcmd) getPrefix: coverage
This commit is contained in:
parent
bdb7bee0b0
commit
81262a0711
1 changed files with 9 additions and 0 deletions
|
|
@ -71,6 +71,15 @@ test('cloudcmd: getPrefix: function', (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: getPrefix: function: empty', (t) => {
|
||||
const value = null;
|
||||
const fn = () => value;
|
||||
const result = _getPrefix(fn);
|
||||
|
||||
t.equal(result, '', 'should equal');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: replacePrefix', (t) => {
|
||||
const url = '/hello';
|
||||
const prefix = url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue