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

@@ -41,7 +41,7 @@ tap.test('should init the client', async () => {
});
tap.test('should get accounts', async () => {
const accounts = await testBunqAccount.getAccounts();
const { accounts } = await testBunqAccount.getAccounts();
expect(accounts).toBeArray();
expect(accounts.length).toBeGreaterThan(0);
@@ -56,7 +56,7 @@ tap.test('should get accounts', async () => {
});
tap.test('should get transactions', async () => {
const accounts = await testBunqAccount.getAccounts();
const { accounts } = await testBunqAccount.getAccounts();
const account = accounts[0];
const transactions = await account.getTransactions();
@@ -74,7 +74,7 @@ tap.test('should get transactions', async () => {
});
tap.test('should test payment builder', async () => {
const accounts = await testBunqAccount.getAccounts();
const { accounts } = await testBunqAccount.getAccounts();
const account = accounts[0];
// Test payment builder without actually creating the payment