@@ -387,14 +387,14 @@ describe('Action Wallet Unit Tests', () => {
387387 it ( 'should navigate to password screen if restoreIndex > 20' , ( ) => {
388388 store . wallet . restoreIndex = 21 ;
389389 wallet . initNextRestorePage ( ) ;
390- expect ( nav . goRestorePassword , 'was called once' ) ;
390+ expect ( nav . goSetPassword , 'was called once' ) ;
391391 expect ( store . wallet . restoreIndex , 'to equal' , 21 ) ;
392392 } ) ;
393393
394394 it ( 'should increment restoreIndex if less than 21' , async ( ) => {
395395 store . wallet . restoreIndex = 18 ;
396396 wallet . initNextRestorePage ( ) ;
397- expect ( nav . goRestorePassword , 'was not called' ) ;
397+ expect ( nav . goSetPassword , 'was not called' ) ;
398398 expect ( store . wallet . restoreIndex , 'to equal' , 21 ) ;
399399 } ) ;
400400 } ) ;
@@ -469,24 +469,6 @@ describe('Action Wallet Unit Tests', () => {
469469 } ) ;
470470 } ) ;
471471
472- describe ( 'restoreWallet()' , ( ) => {
473- beforeEach ( ( ) => {
474- sandbox . stub ( wallet , 'initWallet' ) ;
475- } ) ;
476-
477- it ( 'calls initWallet with password and restoreSeed' , async ( ) => {
478- wallet . setPassword ( { password : 'secret123' } ) ;
479- const seed = Array ( 24 ) . fill ( 'foo' ) ;
480- store . wallet . restoreSeed = seed ;
481- await wallet . restoreWallet ( ) ;
482- expect ( wallet . initWallet , 'was called with' , {
483- walletPassword : 'secret123' ,
484- seedMnemonic : seed ,
485- recoveryWindow : RECOVERY_WINDOW ,
486- } ) ;
487- } ) ;
488- } ) ;
489-
490472 describe ( 'unlockWallet()' , ( ) => {
491473 it ( 'should unlock wallet' , async ( ) => {
492474 grpc . sendUnlockerCommand . withArgs ( 'UnlockWallet' ) . resolves ( ) ;
0 commit comments