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
65cbc8455a
commit
cc30178aaa
1 changed files with 8 additions and 0 deletions
|
|
@ -54,6 +54,14 @@ test('cloudcmd: defaults: console', (t) => {
|
|||
});
|
||||
|
||||
test('cloudcmd: getPrefix', (t) => {
|
||||
const value = 'hello';
|
||||
const result = _getPrefix(value);
|
||||
|
||||
t.equal(result, value, 'should equal');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: getPrefix: function', (t) => {
|
||||
const value = 'hello';
|
||||
const fn = () => value;
|
||||
const result = _getPrefix(fn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue