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
committed by Gitea
parent 156b3b552c
commit e0268b6e6c
@@ -34,6 +34,22 @@ describe('assertType', () => {
}); });
describe('assertString', () => { 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([ test.for([
[0], [0],
[1], [1],