@@ -206,7 +206,7 @@ describe('Action Wallet Unit Tests', () => {
206206 } ) ;
207207 } ) ;
208208
209- describe ( 'checkNewPassword ()' , ( ) => {
209+ describe ( 'checkNewPasswordConfirmation ()' , ( ) => {
210210 beforeEach ( ( ) => {
211211 sandbox . stub ( wallet , 'initWallet' ) ;
212212 sandbox . stub ( wallet , 'initSetPassword' ) ;
@@ -218,7 +218,7 @@ describe('Action Wallet Unit Tests', () => {
218218 it ( 'init wallet if passwords match' , async ( ) => {
219219 wallet . setNewPassword ( { password : 'secret123' } ) ;
220220 wallet . setPasswordVerify ( { password : 'secret123' } ) ;
221- await wallet . checkNewPassword ( ) ;
221+ await wallet . checkNewPasswordConfirmation ( ) ;
222222 expect ( wallet . initWallet , 'was called with' , {
223223 walletPassword : 'secret123' ,
224224 seedMnemonic : [ 'foo' , 'bar' , 'baz' ] ,
@@ -229,7 +229,7 @@ describe('Action Wallet Unit Tests', () => {
229229 it ( 'display notification if input does not match' , async ( ) => {
230230 wallet . setNewPassword ( { password : 'secret123' } ) ;
231231 wallet . setPasswordVerify ( { password : 'secret1234' } ) ;
232- await wallet . checkNewPassword ( ) ;
232+ await wallet . checkNewPasswordConfirmation ( ) ;
233233 expect ( wallet . initWallet , 'was not called' ) ;
234234 expect ( wallet . initSetPassword , 'was called once' ) ;
235235 expect ( notification . display , 'was called once' ) ;
@@ -238,7 +238,7 @@ describe('Action Wallet Unit Tests', () => {
238238 it ( 'display notification if password is too short' , async ( ) => {
239239 wallet . setNewPassword ( { password : 'secret' } ) ;
240240 wallet . setPasswordVerify ( { password : 'secret' } ) ;
241- await wallet . checkNewPassword ( ) ;
241+ await wallet . checkNewPasswordConfirmation ( ) ;
242242 expect ( wallet . initWallet , 'was not called' ) ;
243243 expect ( wallet . initSetPassword , 'was called once' ) ;
244244 expect ( notification . display , 'was called once' ) ;
@@ -250,7 +250,7 @@ describe('Action Wallet Unit Tests', () => {
250250 store . settings . restoring = true ;
251251 wallet . setNewPassword ( { password : 'secret123' } ) ;
252252 wallet . setPasswordVerify ( { password : 'secret123' } ) ;
253- await wallet . checkNewPassword ( ) ;
253+ await wallet . checkNewPasswordConfirmation ( ) ;
254254 expect ( wallet . initWallet , 'was called with' , {
255255 walletPassword : 'secret123' ,
256256 seedMnemonic : restoreSeed ,
0 commit comments