Skip to content

Commit

Permalink
Chore: fix lint in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Feb 15, 2024
1 parent 37c45f8 commit 8e8895c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/__tests__/broadcast.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ describe('broadcast middleware', () => {
const event = new Event('message')
const data = { action, tabId: 'anotherTab' }
Object.defineProperty(event, 'data', { value: data })

global.BroadcastChannel.prototype.addEventListener.mock.calls[0][1](event)
;(global.BroadcastChannel as any).prototype.addEventListener.mock.calls[0][1](event)

expect(store.getState().addressBook).toEqual({})
})
Expand Down

0 comments on commit 8e8895c

Please sign in to comment.