diff --git a/test/server/cloudcmd.js b/test/server/cloudcmd.js index edfc12f6..a2b45657 100644 --- a/test/server/cloudcmd.js +++ b/test/server/cloudcmd.js @@ -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;