Skip to content

Commit 5096154

Browse files
committed
Remove duplicate test
1 parent dc78bea commit 5096154

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/__tests__/webhooks/bankingWebhooks.spec.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -80,38 +80,6 @@ describe("BankingWebhooks Tests", function (): void {
8080
expect(genericWebhook.data.balancePlatform).toEqual("YOUR_BALANCE_PLATFORM");
8181
});
8282

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-
11583
it("should deserialize Transaction v4 Webhooks", function (): void {
11684
const json = {
11785
"data": {

0 commit comments

Comments
 (0)