fix(tests): update tests for v4.0.0 stateless architecture compatibility

This commit is contained in:
2025-07-27 08:51:31 +00:00
parent c9fab7def2
commit cb6e79ba50
9 changed files with 22 additions and 15 deletions

View File

@@ -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