@@ -80,38 +80,6 @@ describe("BankingWebhooks Tests", function (): void {
80
80
expect ( genericWebhook . data . balancePlatform ) . toEqual ( "YOUR_BALANCE_PLATFORM" ) ;
81
81
} ) ;
82
82
83
- it ( "should throw an error when BalanceAccountNotification" , function ( ) : void {
84
- const json = {
85
- "data" : {
86
- "balancePlatform" : "YOUR_BALANCE_PLATFORM" ,
87
- "balanceAccount" : {
88
- "accountHolderId" : "AH00000000000000000001" ,
89
- "defaultCurrencyCode" : "EUR" ,
90
- "id" : "BA00000000000000000001" ,
91
- "status" : "active"
92
- }
93
- } ,
94
- "environment" : "test" ,
95
- "timestamp" : "2024-12-15T15:42:03+01:00" ,
96
- "type" : "balancePlatform.balanceAccount.created"
97
- } ;
98
- const jsonString = JSON . stringify ( json ) ;
99
- const configurationWebhooksHandler = new ConfigurationWebhooksHandler ( jsonString ) ;
100
- // test getBalanceAccountNotificationRequest
101
- const balanceAccountNotificationRequest = configurationWebhooksHandler . getBalanceAccountNotificationRequest ( ) ;
102
- expect ( balanceAccountNotificationRequest instanceof BalanceAccountNotificationRequest ) . toBe ( true ) ;
103
- expect ( balanceAccountNotificationRequest . environment ) . toEqual ( "test" ) ;
104
- expect ( balanceAccountNotificationRequest . type ) . toEqual ( "balancePlatform.balanceAccount.created" ) ;
105
- expect ( balanceAccountNotificationRequest . data . balancePlatform ) . toEqual ( "YOUR_BALANCE_PLATFORM" ) ;
106
- expect ( balanceAccountNotificationRequest . data . balanceAccount ?. id ) . toEqual ( "BA00000000000000000001" ) ;
107
-
108
- const accountHolderNotificationRequest = configurationWebhooksHandler . getAccountHolderNotificationRequest ( ) ;
109
- expect ( accountHolderNotificationRequest instanceof BalanceAccountNotificationRequest ) . toBe ( false ) ;
110
-
111
- expect ( accountHolderNotificationRequest . environment ) . toEqual ( "test" ) ;
112
-
113
- } ) ;
114
-
115
83
it ( "should deserialize Transaction v4 Webhooks" , function ( ) : void {
116
84
const json = {
117
85
"data" : {
0 commit comments