fix(core): update

This commit is contained in:
2022-10-29 16:18:29 +02:00
parent 9b7f25c996
commit 22239ddbeb
10 changed files with 4461 additions and 15290 deletions

View File

@ -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);
}
});