Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit da16875

Browse files
mikespositomcmire
andauthored
Update src/KeyringController.test.ts
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
1 parent b2dd5fb commit da16875

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/KeyringController.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ describe('KeyringController', () => {
122122
await keyringController.persistAllKeyrings();
123123

124124
const { vault } = keyringController.store.getState();
125-
const keyrings = await mockEncryptor.decrypt(PASSWORD, vault as string);
125+
assert(vault, "Vault is not set");
126+
const keyrings = await mockEncryptor.decrypt(PASSWORD, vault);
126127
expect(keyrings).toContain(unsupportedKeyring);
127128
expect(keyrings).toHaveLength(2);
128129
});

0 commit comments

Comments
 (0)