fix(tests): update tests for v4.0.0 stateless architecture compatibility
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user