Skip to content

Commit

Permalink
test: work around a Jest bug with node v12.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eventualbuddha committed Oct 28, 2020
1 parent cf8a31c commit 2b06053
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/module-scan/src/store.test.ts
Expand Up @@ -25,9 +25,7 @@ test('get/set election', async () => {
expect(await store.getElectionDefinition()).toBeUndefined()

await store.setElection(fromElection(election))
expect(await store.getElectionDefinition()).toEqual(
expect.objectContaining({ election })
)
expect((await store.getElectionDefinition())?.election).toEqual(election)

await store.setElection(undefined)
expect(await store.getElectionDefinition()).toBeUndefined()
Expand Down

0 comments on commit 2b06053

Please sign in to comment.