mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
test(util) getExt: coverage
This commit is contained in:
parent
42c6c37ed8
commit
1a5abdef7b
1 changed files with 7 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue