Skip to content

Commit

Permalink
fix: only fix typescript3.9 error
Browse files Browse the repository at this point in the history
  • Loading branch information
myNameIsDu committed Jul 19, 2021
1 parent f1ba38a commit 79cbb10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/hooks/useSelector.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ describe('React', () => {
})

it('selects the state and renders the component when the store updates', () => {
const selector: jest.Mock<number, [s: NormalStateType]> = jest.fn(
type MockParams = [NormalStateType]
const selector: jest.Mock<number, MockParams> = jest.fn(
(s) => s.count
)

Expand Down

0 comments on commit 79cbb10

Please sign in to comment.