Skip to content

Commit

Permalink
migrate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devanshj committed Apr 12, 2022
1 parent 58dc684 commit 374a5f0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/devtools.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ describe('When state changes...', () => {
{ type: 'testSetStateName' },
{ count: 10, foo: 'bar' }
)
api.setState({ count: 5 }, true)
api.setState({ count: 5, foo: 'baz' }, true)
expect(extension.send).toHaveBeenLastCalledWith(
{ type: 'anonymous' },
{ count: 5 }
{ count: 5, foo: 'baz' }
)
})
})
Expand Down Expand Up @@ -439,7 +439,12 @@ describe('when it receives an message of type...', () => {
})

describe('with redux middleware', () => {
let api: StoreApi<{ count: number }>
let api: StoreApi<{
count: number
dispatch: (
action: { type: 'INCREMENT' } | { type: 'DECREMENT' }
) => { type: 'INCREMENT' } | { type: 'DECREMENT' }
}>

it('works as expected', () => {
api = create(
Expand Down

0 comments on commit 374a5f0

Please sign in to comment.