@@ -38,7 +38,7 @@ describe('TrezorConnect.authenticateDevice', () => {
3838 ) ,
3939 } ;
4040
41- conditionalTest ( [ '!T2T1' , '!T1B1' ] , 'validation successful' , async ( ) => {
41+ conditionalTest ( [ '*T3W1' ] , 'validation successful - tropic ' , async ( ) => {
4242 const result = await TrezorConnect . authenticateDevice ( {
4343 config,
4444 } ) ;
@@ -54,6 +54,20 @@ describe('TrezorConnect.authenticateDevice', () => {
5454 } ) ;
5555 } ) ;
5656
57+ conditionalTest ( [ '*T3T1' , '*T3B1' , '*T2B1' ] , 'validation successful - optiga' , async ( ) => {
58+ const result = await TrezorConnect . authenticateDevice ( {
59+ config,
60+ } ) ;
61+
62+ expect ( result ) . toMatchObject ( {
63+ success : true ,
64+ payload : {
65+ optigaResult : { valid : true } ,
66+ tropicResult : null ,
67+ } ,
68+ } ) ;
69+ } ) ;
70+
5771 conditionalTest (
5872 [ '!T2T1' , '!T1B1' ] ,
5973 'validation unsuccessful (rootPubKey not found)' ,
@@ -83,14 +97,13 @@ describe('TrezorConnect.authenticateDevice', () => {
8397 success : true ,
8498 payload : {
8599 optigaResult : { valid : false , error : 'ROOT_PUBKEY_NOT_FOUND' } ,
86- tropicResult : null ,
87100 } ,
88101 } ) ;
89102 } ,
90103 ) ;
91104
92105 conditionalTest (
93- [ '!T2T1 ' , '!T1B1 ' ] ,
106+ [ '*T3T1 ' , '*T3B1' , '*T2B1 '] ,
94107 'sanity check unsuccessful (caPubkey is on blacklist)' ,
95108 async ( ) => {
96109 const result = await TrezorConnect . authenticateDevice ( {
@@ -110,7 +123,6 @@ describe('TrezorConnect.authenticateDevice', () => {
110123 success : true ,
111124 payload : {
112125 optigaResult : { valid : false , error : 'CA_PUBKEY_BLACKLISTED' } ,
113- tropicResult : null ,
114126 } ,
115127 } ) ;
116128 } ,
0 commit comments