Skip to content

Commit

Permalink
removed bug in test
Browse files Browse the repository at this point in the history
  • Loading branch information
77it committed Dec 27, 2024
1 parent 9da4047 commit ab0ebe9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/lib_test/sanitization_utils_a__sanitize()__test.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,6 @@ t('test sanitize() - custom function type + validation (use the SanitizationVali
assert.deepStrictEqual((10), (s.sanitize({ value: '', sanitization: t })));
assert.deepStrictEqual(('abc'), (s.sanitize({ value: 'abc', sanitization: t })));
assert.deepStrictEqual((new Date(2022, 11, 25)), (s.sanitize({ value: new Date(2022, 11, 25), sanitization: t })));
assert.deepStrictEqual((new Date(NaN)), (s.sanitize({ value: new Date(NaN), sanitization: t })));

// sanitize + validate
s.sanitize({ value: 0, sanitization: t, validate: true });
Expand All @@ -620,7 +619,6 @@ t('test sanitize() - array of custom function type + validation (use the Sanitiz
assert.deepStrictEqual(([10]), (s.sanitize({ value: '', sanitization: t })));
assert.deepStrictEqual((['abc']), (s.sanitize({ value: 'abc', sanitization: t })));
assert.deepStrictEqual(([new Date(2022, 11, 25)]), (s.sanitize({ value: new Date(2022, 11, 25), sanitization: t })));
assert.deepStrictEqual(([new Date(NaN)]), (s.sanitize({ value: new Date(NaN), sanitization: t })));

// sanitize + validate
s.sanitize({ value: 999, sanitization: t, validate: true });
Expand Down

0 comments on commit ab0ebe9

Please sign in to comment.