Skip to content

Commit

Permalink
test: update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Nov 3, 2024
1 parent 9060f9b commit 75c0137
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/general.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ import {
isDataView,
isEqual,
isEqualWith,
isError,
isDOMException,
getGlobalThis,
} from '../src'

Expand Down Expand Up @@ -202,6 +204,14 @@ it('isArrayBuffer', () => {
expect(isArrayBuffer(new ArrayBuffer(1))).toBe(true)
})

it('isError', () => {
expect(isError(new Error())).toBe(true)
})

it('isDOMException', () => {
expect(isDOMException(new DOMException())).toBe(true)
})

it('isTypedArray', () => {
expect(isTypedArray(new Int8Array())).toBe(true)
expect(isTypedArray(new Uint8Array())).toBe(true)
Expand Down

0 comments on commit 75c0137

Please sign in to comment.