Skip to content

Commit 57ac061

Browse files
committed
Correct test data
1 parent 8d25c0f commit 57ac061

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/__tests__/notification.spec.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,16 +391,17 @@ describe("Notification Test", function (): void {
391391
it("should deserialize BalanceWebhooks BalanceAccountBalanceNotificationRequest", function (): void {
392392
const json = {
393393
"data": {
394-
"settingIds": "BWHS00000000000000000000000001",
395-
"creationDate": "2025-01-19T13:37:38+02:00",
394+
"balanceAccountId": "BWHS00000000000000000000000001",
396395
"balancePlatform": "YOUR_BALANCE_PLATFORM",
397-
"currency": "USD",
398396
"balances": {
399397
"available": 499900,
400398
"pending": 350000,
401399
"reserved": 120000,
402400
"balance": 470000
403-
}
401+
},
402+
"creationDate": "2025-01-19T13:37:38+02:00",
403+
"currency": "USD",
404+
"settingIds": ["WK1", "WK2"]
404405
},
405406
"environment": "test",
406407
"type": "balancePlatform.balanceAccount.balance.updated"
@@ -414,6 +415,8 @@ describe("Notification Test", function (): void {
414415
);
415416
expect(balanceAccountBalanceNotificationRequest.environment).toBe("test");
416417
expect(balanceAccountBalanceNotificationRequest.data).toBeDefined();
418+
expect(balanceAccountBalanceNotificationRequest.data.settingIds).toBeTruthy();
419+
expect(balanceAccountBalanceNotificationRequest.data.settingIds.length).toBe(2);
417420
expect(balanceAccountBalanceNotificationRequest.data.balancePlatform).toBe("YOUR_BALANCE_PLATFORM");
418421
expect(balanceAccountBalanceNotificationRequest.data .currency).toBe("USD");
419422
});

0 commit comments

Comments
 (0)