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

Commit bfc85a2

Browse files
committed
test progress
1 parent 39650d3 commit bfc85a2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,14 +510,24 @@ describe('KeyringController', function () {
510510

511511
// TODO: THIS SHOULD BE FAILING
512512
it('does not unlock with incorrect encryption key', async function() {
513+
// Log in with correct password, which will trigger generation of key
514+
await keyringController.createNewVaultAndKeychain(password);
515+
await keyringController.persistAllKeyrings();
516+
await keyringController.submitPassword(password);
517+
513518
// Log the user out
514519
await keyringController.setLocked();
515520
const encryptionKey = await keyringController.submitEncryptedKey('FAKE STRING');
516521

517522
expect(encryptionKey).toBeTruthy();
518523
});
519524

520-
it.todo('unlocks with correct encryption key');
525+
it('unlocks with correct encryption key', async function() {
526+
// Log in with correct password, which will trigger generation of key
527+
await keyringController.createNewVaultAndKeychain(password);
528+
await keyringController.persistAllKeyrings();
529+
await keyringController.submitPassword(password);
530+
});
521531

522532
it('removes encryption key when locked', async function () {
523533
// Log in with correct password, which will trigger generation of key

0 commit comments

Comments
 (0)