Skip to content

Commit

Permalink
chore: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Sep 12, 2022
1 parent a688567 commit a51362a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ts/PrimitiveTypes.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { IsNever, isType } from './index.js'

describe('IsNever<T>', () => {
it('checks if type is never', () => {
isType.equal<true, true, IsNever<never>>()
isType.equal<true, false, IsNever<number>>()
isType.equal<true, false, IsNever<{ a: number }>>()
isType.equal<true, false, IsNever<[]>>()
})
})

0 comments on commit a51362a

Please sign in to comment.