This repository was archived by the owner on Oct 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments