@@ -542,34 +542,34 @@ describe('#TransactionControllerExternal', () => {
542
542
message : 'Counterparty must have either business or end user data.' ,
543
543
} ) ;
544
544
} ) ;
545
- } ) ;
546
545
547
- it ( 'returns 400 when counterparty has both business and end user' , async ( ) => {
548
- // Arrange
549
- const apiKey = ( customer . authenticationConfiguration as { authValue : string } ) . authValue ;
550
- const validTransaction = getBaseTransactionData ( ) ;
551
- const transactions = [
552
- {
553
- ...validTransaction ,
554
- originator : getBusinessCounterpartyData ( ) ,
555
- beneficiary : {
556
- ...getBusinessCounterpartyData ( ) ,
557
- ...getEndUserCounterpartyData ( ) ,
546
+ it ( 'returns 400 when counterparty has both business and end user' , async ( ) => {
547
+ // Arrange
548
+ const apiKey = ( customer . authenticationConfiguration as { authValue : string } ) . authValue ;
549
+ const validTransaction = getBaseTransactionData ( ) ;
550
+ const transactions = [
551
+ {
552
+ ...validTransaction ,
553
+ originator : getBusinessCounterpartyData ( ) ,
554
+ beneficiary : {
555
+ ...getBusinessCounterpartyData ( ) ,
556
+ ...getEndUserCounterpartyData ( ) ,
557
+ } ,
558
558
} ,
559
- } ,
560
- ] as const satisfies readonly TransactionCreateDto [ ] ;
561
-
562
- // Act
563
- const response = await request ( app . getHttpServer ( ) )
564
- . post ( '/external/ transactions/bulk' )
565
- . send ( transactions )
566
- . set ( 'authorization' , `Bearer ${ apiKey } ` ) ;
567
-
568
- // Assert
569
- expect ( response . status ) . toBe ( 400 ) ;
570
- expect ( response . body ) . toEqual ( {
571
- statusCode : 400 ,
572
- message : 'Counterparty must have either business or end user data.' ,
559
+ ] as const satisfies readonly TransactionCreateDto [ ] ;
560
+
561
+ // Act
562
+ const response = await request ( app . getHttpServer ( ) )
563
+ . post ( '/external/transactions/bulk' )
564
+ . send ( transactions )
565
+ . set ( 'authorization' , `Bearer ${ apiKey } ` ) ;
566
+
567
+ // Assert
568
+ expect ( response . status ) . toBe ( 400 ) ;
569
+ expect ( response . body ) . toEqual ( {
570
+ statusCode : 400 ,
571
+ message : 'Counterparty must have either business or end user data.' ,
572
+ } ) ;
573
573
} ) ;
574
574
} ) ;
575
575
} ) ;
0 commit comments