From 69cb5fac5e8d8c9bc211f996a5378b4fb9c6d7fa Mon Sep 17 00:00:00 2001 From: EmersonRabelo Date: Fri, 9 Feb 2024 09:06:30 -0300 Subject: [PATCH] add: Empty string unit test --- test/util.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/util.test.js b/test/util.test.js index 83891c52b..caf19893d 100644 --- a/test/util.test.js +++ b/test/util.test.js @@ -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'); }); });