Skip to content

Commit 5a5d714

Browse files
committed
fix: add test for validation
1 parent 5b5c5d9 commit 5a5d714

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/index.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
2+
import {validate} from '.'
3+
4+
test('imports', () => {
5+
expect(() =>
6+
((validate as unknown) as any)(undefined, undefined, undefined, 'file.ts'),
7+
).toThrow()
8+
})

0 commit comments

Comments
 (0)