From d8e311f4fa06bbcd9433c754dfa487ffa157ab24 Mon Sep 17 00:00:00 2001 From: Andre Christoga Pramaditya Date: Tue, 22 Mar 2022 21:13:41 +0700 Subject: [PATCH] feat(jest): 100% coverage for store/accounts/mutations --- store/accounts/mutations.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/store/accounts/mutations.test.ts b/store/accounts/mutations.test.ts index 7e2544aa6a..1a3467e0b3 100644 --- a/store/accounts/mutations.test.ts +++ b/store/accounts/mutations.test.ts @@ -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')