File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -803,6 +803,20 @@ describe(OlmMachine.name, () => {
803
803
expect ( outgoingVerificationRequest . txn_id ) . toBeDefined ( ) ;
804
804
expect ( outgoingVerificationRequest . event_type ) . toStrictEqual ( 'm.key.verification.start' ) ;
805
805
expect ( outgoingVerificationRequest . content ) . toBeDefined ( ) ;
806
+
807
+ const content = JSON . parse ( outgoingVerificationRequest . content ) ;
808
+ expect ( content ) . toMatchObject ( {
809
+ from_device : expect . any ( String ) ,
810
+ method : 'm.sas.v1' ,
811
+ key_agreement_protocols : [ expect . any ( String ) ] ,
812
+ hashes : [ expect . any ( String ) ] ,
813
+ message_authentication_codes : [ expect . any ( String ) , expect . any ( String ) ] ,
814
+ short_authentication_string : [ 'decimal' , 'emoji' ] ,
815
+ 'm.relates_to' : {
816
+ rel_type : 'm.reference' ,
817
+ event_id : eventId . toString ( ) ,
818
+ }
819
+ } ) ;
806
820
} )
807
821
} ) ;
808
822
} ) ;
You can’t perform that action at this time.
0 commit comments