fix(tests,webhooks): fix test assertions and webhook API structure
This commit is contained in:
@@ -64,7 +64,7 @@ tap.test('should test joint account functionality', async () => {
|
||||
const jointAccount = allAccounts.find(acc => acc.id === jointAccountId);
|
||||
|
||||
expect(jointAccount).toBeDefined();
|
||||
expect(jointAccount?.accountType).toBe('joint');
|
||||
expect(jointAccount?.accountType).toEqual('joint');
|
||||
} catch (error) {
|
||||
console.log('Joint account creation not supported in sandbox:', error.message);
|
||||
}
|
||||
@@ -94,8 +94,8 @@ tap.test('should test card operations', async () => {
|
||||
|
||||
// Get card details
|
||||
const card = await cardManager.get(cardId);
|
||||
expect(card.id).toBe(cardId);
|
||||
expect(card.type).toBe('MASTERCARD');
|
||||
expect(card.id).toEqual(cardId);
|
||||
expect(card.type).toEqual('MASTERCARD');
|
||||
expect(card.status).toBeOneOf(['ACTIVE', 'PENDING_ACTIVATION']);
|
||||
|
||||
// Update card status
|
||||
|
Reference in New Issue
Block a user