fix(core): update
This commit is contained in:
@ -7,6 +7,16 @@ import * as tink from '../ts/index';
|
||||
|
||||
let tinkTestAccount: tink.TinkAccount;
|
||||
|
||||
tap.preTask('should delete existing users', async () => {
|
||||
const preTinkAccount = tinkTestAccount = new tink.TinkAccount(
|
||||
testQenv.getEnvVarOnDemand('TINK_CLIENT_ID'),
|
||||
testQenv.getEnvVarOnDemand('TINK_CLIENT_SECRET')
|
||||
);
|
||||
expect(tinkTestAccount).toBeInstanceOf(tink.TinkAccount);
|
||||
const tinkUser = new tink.TinkUser(preTinkAccount, null, 'user_1234_abc');
|
||||
await tinkUser.delete();
|
||||
})
|
||||
|
||||
tap.test('should create a valid tink account', async () => {
|
||||
tinkTestAccount = new tink.TinkAccount(
|
||||
testQenv.getEnvVarOnDemand('TINK_CLIENT_ID'),
|
||||
@ -20,7 +30,7 @@ tap.test('should report tink as healthy', async () => {
|
||||
});
|
||||
|
||||
tap.test('should create a valid request', async () => {
|
||||
await tinkTestAccount.request('', 'POST', '', {});
|
||||
await tinkTestAccount.createTinkUser("user_1234_abc");
|
||||
})
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user