From 81262a07116aecf86cf53f1dc92b36f22d10218b Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 9 Nov 2017 16:25:47 +0200 Subject: [PATCH] test(cloudcmd) getPrefix: coverage --- test/server/cloudcmd.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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;