@@ -37,7 +37,7 @@ describe("AccessSecretStorageDialog", function() {
3737 recoveryKey : "a" ,
3838 } ) ;
3939 const e = { preventDefault : ( ) => { } } ;
40- testInstance . getInstance ( ) . _onRecoveryKeyNext ( e ) ;
40+ testInstance . getInstance ( ) . onRecoveryKeyNext ( e ) ;
4141 } ) ;
4242
4343 it ( "Considers a valid key to be valid" , async function ( ) {
@@ -51,9 +51,9 @@ describe("AccessSecretStorageDialog", function() {
5151 stubClient ( ) ;
5252 MatrixClientPeg . get ( ) . keyBackupKeyFromRecoveryKey = ( ) => 'a raw key' ;
5353 MatrixClientPeg . get ( ) . checkSecretStorageKey = ( ) => true ;
54- testInstance . getInstance ( ) . _onRecoveryKeyChange ( e ) ;
54+ testInstance . getInstance ( ) . onRecoveryKeyChange ( e ) ;
5555 // force a validation now because it debounces
56- await testInstance . getInstance ( ) . _validateRecoveryKey ( ) ;
56+ await testInstance . getInstance ( ) . validateRecoveryKey ( ) ;
5757 const { recoveryKeyValid } = testInstance . getInstance ( ) . state ;
5858 expect ( recoveryKeyValid ) . toBe ( true ) ;
5959 } ) ;
@@ -69,9 +69,9 @@ describe("AccessSecretStorageDialog", function() {
6969 MatrixClientPeg . get ( ) . keyBackupKeyFromRecoveryKey = ( ) => {
7070 throw new Error ( "that's no key" ) ;
7171 } ;
72- testInstance . getInstance ( ) . _onRecoveryKeyChange ( e ) ;
72+ testInstance . getInstance ( ) . onRecoveryKeyChange ( e ) ;
7373 // force a validation now because it debounces
74- await testInstance . getInstance ( ) . _validateRecoveryKey ( ) ;
74+ await testInstance . getInstance ( ) . validateRecoveryKey ( ) ;
7575
7676 const { recoveryKeyValid, recoveryKeyCorrect } = testInstance . getInstance ( ) . state ;
7777 expect ( recoveryKeyValid ) . toBe ( false ) ;
@@ -98,8 +98,8 @@ describe("AccessSecretStorageDialog", function() {
9898 const e = { target : { value : "a" } } ;
9999 stubClient ( ) ;
100100 MatrixClientPeg . get ( ) . isValidRecoveryKey = ( ) => false ;
101- testInstance . getInstance ( ) . _onPassPhraseChange ( e ) ;
102- await testInstance . getInstance ( ) . _onPassPhraseNext ( { preventDefault : ( ) => { } } ) ;
101+ testInstance . getInstance ( ) . onPassPhraseChange ( e ) ;
102+ await testInstance . getInstance ( ) . onPassPhraseNext ( { preventDefault : ( ) => { } } ) ;
103103 const notification = testInstance . root . findByProps ( {
104104 className : "mx_AccessSecretStorageDialog_keyStatus" ,
105105 } ) ;
0 commit comments