fix(core): update
This commit is contained in:
@ -31,7 +31,7 @@ tap.test('should create a valid request', async (toolsArg) => {
|
||||
});
|
||||
|
||||
tap.test('allow tink link to be used', async (toolsArg) => {
|
||||
await toolsArg.delayFor(60000);
|
||||
await toolsArg.delayFor(30000);
|
||||
});
|
||||
|
||||
tap.test('get provider consents', async () => {
|
||||
@ -43,11 +43,15 @@ tap.test('get provider consents', async () => {
|
||||
tap.test('get bankaccounts', async (toolsArg) => {
|
||||
const tinkuser: tink.TinkUser = await tinkTestAccount.getTinkUser('user_1234_abc');
|
||||
const bankAccounts = await tinkuser.getAllBankAccounts();
|
||||
console.log(bankAccounts);
|
||||
console.log(bankAccounts.map(bankAccountArg => bankAccountArg.getNormalizedData()));
|
||||
|
||||
for (const bankAccount of bankAccounts) {
|
||||
const transactions = await bankAccount.getTransactions();
|
||||
console.log(transactions);
|
||||
for (const transaction of transactions) {
|
||||
console.log(`=======================`)
|
||||
console.log(JSON.stringify(transaction));
|
||||
|
||||
}
|
||||
await toolsArg.delayFor(10000);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user