Skip to content

Commit

Permalink
feat(jest): 100% coverage for store/accounts/mutations (#2448)
Browse files Browse the repository at this point in the history
  • Loading branch information
drepram authored Mar 22, 2022
1 parent 9f80cea commit 934b4cd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions store/accounts/mutations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ describe('init', () => {
})
})

it('should setRegistry', () => {
const localStateForUnitTest = { ...state }
localStateForUnitTest.registry = true
inst.setRegistry(localStateForUnitTest, false)

expect(localStateForUnitTest).toMatchObject({
registry: false,
})
})

it('should setPinHash', () => {
const localStateForUnitTest = { ...state }
inst.setPinHash(localStateForUnitTest, '123456')
Expand Down

0 comments on commit 934b4cd

Please sign in to comment.