@@ -206,7 +206,7 @@ describe('Action Wallet Unit Tests', () => {
206
206
} ) ;
207
207
} ) ;
208
208
209
- describe ( 'checkNewPassword ()' , ( ) => {
209
+ describe ( 'checkNewPasswordConfirmation ()' , ( ) => {
210
210
beforeEach ( ( ) => {
211
211
sandbox . stub ( wallet , 'initWallet' ) ;
212
212
sandbox . stub ( wallet , 'initSetPassword' ) ;
@@ -218,7 +218,7 @@ describe('Action Wallet Unit Tests', () => {
218
218
it ( 'init wallet if passwords match' , async ( ) => {
219
219
wallet . setNewPassword ( { password : 'secret123' } ) ;
220
220
wallet . setPasswordVerify ( { password : 'secret123' } ) ;
221
- await wallet . checkNewPassword ( ) ;
221
+ await wallet . checkNewPasswordConfirmation ( ) ;
222
222
expect ( wallet . initWallet , 'was called with' , {
223
223
walletPassword : 'secret123' ,
224
224
seedMnemonic : [ 'foo' , 'bar' , 'baz' ] ,
@@ -229,7 +229,7 @@ describe('Action Wallet Unit Tests', () => {
229
229
it ( 'display notification if input does not match' , async ( ) => {
230
230
wallet . setNewPassword ( { password : 'secret123' } ) ;
231
231
wallet . setPasswordVerify ( { password : 'secret1234' } ) ;
232
- await wallet . checkNewPassword ( ) ;
232
+ await wallet . checkNewPasswordConfirmation ( ) ;
233
233
expect ( wallet . initWallet , 'was not called' ) ;
234
234
expect ( wallet . initSetPassword , 'was called once' ) ;
235
235
expect ( notification . display , 'was called once' ) ;
@@ -238,7 +238,7 @@ describe('Action Wallet Unit Tests', () => {
238
238
it ( 'display notification if password is too short' , async ( ) => {
239
239
wallet . setNewPassword ( { password : 'secret' } ) ;
240
240
wallet . setPasswordVerify ( { password : 'secret' } ) ;
241
- await wallet . checkNewPassword ( ) ;
241
+ await wallet . checkNewPasswordConfirmation ( ) ;
242
242
expect ( wallet . initWallet , 'was not called' ) ;
243
243
expect ( wallet . initSetPassword , 'was called once' ) ;
244
244
expect ( notification . display , 'was called once' ) ;
@@ -250,7 +250,7 @@ describe('Action Wallet Unit Tests', () => {
250
250
store . settings . restoring = true ;
251
251
wallet . setNewPassword ( { password : 'secret123' } ) ;
252
252
wallet . setPasswordVerify ( { password : 'secret123' } ) ;
253
- await wallet . checkNewPassword ( ) ;
253
+ await wallet . checkNewPasswordConfirmation ( ) ;
254
254
expect ( wallet . initWallet , 'was called with' , {
255
255
walletPassword : 'secret123' ,
256
256
seedMnemonic : restoreSeed ,
0 commit comments