Skip to content

Commit a3ec180

Browse files
committed
fix: add more invalid types to format type check
1 parent 4202823 commit a3ec180

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/formats.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function runRanges (ranges, fn, expected) {
1818
}
1919

2020
const ensureValidFormat = (fn) => {
21-
const invalid = [undefined, 123, {}, [], true, false, () => {}, Symbol('test')];
21+
const invalid = [null, undefined, 123, 0x00, Infinity, {}, [], true, false, () => {}, Symbol('test')];
2222
invalid.forEach(value => {
2323
try {
2424
fn(value);

0 commit comments

Comments
 (0)