test(settings): add unit test for the settings validator assertString function for test cases that should not throw an error

This commit is contained in:
2026-06-04 13:56:16 +02:00
parent 4d612f2c19
commit c53d98a95c
@@ -34,6 +34,22 @@ describe('assertType', () => {
});
describe('assertString', () => {
test.for([
['a'],
['b'],
['ab'],
['0'],
['42'],
['null'],
['undefined'],
['()&%())']
])('throws no error for the value %s', ([ value ]) => {
expect(() => assertString(value)).not.throw(Error);
});
test.for([
[0],
[1],