Skip to content

Commit

Permalink
add: Empty string unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
EmersonRabelo committed Feb 9, 2024
1 parent 241c4a8 commit 69cb5fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ describe('assertString', () => {
assert.throws(() => { assertString([]); }, TypeError);
});

it('Should not throw an error if the argument is a string', () => {
assert.doesNotThrow(() => { assertString(''); });
});

it('Should not throw an error if the argument is a string', () => {
assert.doesNotThrow(() => { assertString('testing'); });
});
Expand Down

0 comments on commit 69cb5fa

Please sign in to comment.