diff --git a/test/common/util.js b/test/common/util.js index 8c774281..84c45adb 100644 --- a/test/common/util.js +++ b/test/common/util.js @@ -29,6 +29,13 @@ test('getExt: return extension', (t) => { t.end(); }); +test('util: getExt: no name', (t) => { + const ext = Util.getExt(); + + t.equal(ext, '', 'should return empty string'); + t.end(); +}); + test('getStrBigFirst: args', (t) => { t.throws(getStrBigFirst, /str could not be empty!/, 'should throw when no str'); t.end();