fix(tests): update tests for v4.0.0 stateless architecture compatibility
This commit is contained in:
@@ -25,7 +25,7 @@ tap.test('should setup error test environment', async () => {
|
||||
await testBunqAccount.init();
|
||||
|
||||
// Get primary account
|
||||
const accounts = await testBunqAccount.getAccounts();
|
||||
const { accounts } = await testBunqAccount.getAccounts();
|
||||
primaryAccount = accounts[0];
|
||||
|
||||
expect(primaryAccount).toBeInstanceOf(bunq.BunqMonetaryAccount);
|
||||
@@ -283,7 +283,7 @@ tap.test('should test error recovery strategies', async () => {
|
||||
}
|
||||
|
||||
const accounts = await retryableOperation();
|
||||
expect(accounts).toBeArray();
|
||||
expect(accounts.accounts).toBeArray();
|
||||
console.log('Error recovery with retry successful');
|
||||
|
||||
// 2. Recover from expired session
|
||||
|
Reference in New Issue
Block a user