test(cloudcmd) getPrefix: coverage

This commit is contained in:
coderaiser 2017-11-09 16:10:16 +02:00
parent 65cbc8455a
commit cc30178aaa

View file

@ -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);