fix(tests): update tests for v4.0.0 stateless architecture compatibility
This commit is contained in:
@@ -84,7 +84,7 @@ tap.test('should test concurrent session usage', async () => {
|
||||
// Execute all operations concurrently
|
||||
const results = await Promise.all(operations);
|
||||
|
||||
expect(results[0]).toBeArray(); // Accounts
|
||||
expect(results[0].accounts).toBeArray(); // Accounts
|
||||
expect(results[1]).toBeDefined(); // User info
|
||||
expect(results[2]).toBeArray(); // Notification filters
|
||||
|
||||
@@ -172,7 +172,7 @@ tap.test('should test session token rotation', async () => {
|
||||
|
||||
// Make multiple requests to test token handling
|
||||
for (let i = 0; i < 3; i++) {
|
||||
const accounts = await testBunqAccount.getAccounts();
|
||||
const { accounts } = await testBunqAccount.getAccounts();
|
||||
expect(accounts).toBeArray();
|
||||
console.log(`Request ${i + 1} completed successfully`);
|
||||
|
||||
@@ -213,7 +213,7 @@ tap.test('should test session cleanup on error', async () => {
|
||||
}
|
||||
|
||||
// Ensure we can still use the session
|
||||
const accounts = await tempAccount.getAccounts();
|
||||
const { accounts } = await tempAccount.getAccounts();
|
||||
expect(accounts).toBeArray();
|
||||
console.log('Session still functional after error');
|
||||
|
||||
|
Reference in New Issue
Block a user