Skip to content

Commit

Permalink
Add test for #29
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed May 10, 2023
1 parent 3081e2e commit 5d5b1eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/usage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ test('Array items can be checked with `.items`', () => {
expectTypeOf([1, 2, 3]).items.not.toBeString()
})

test('You can also compare arrays directly', () => {
expectTypeOf<any[]>().not.toEqualTypeOf<number[]>()
})

test('Check that functions never return', () => {
const thrower = () => {
throw new Error('oh no')
Expand Down

0 comments on commit 5d5b1eb

Please sign in to comment.