fix(core): update
This commit is contained in:
24
test/test.ts
24
test/test.ts
@ -1,8 +1,26 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import { expect, expectAsync, tap } from '@pushrocks/tapbundle';
|
||||
import * as qenv from '@pushrocks/qenv';
|
||||
|
||||
const testQenv = new qenv.Qenv('./', './.nogit/');
|
||||
|
||||
import * as tink from '../ts/index';
|
||||
|
||||
tap.test('first test', async () => {
|
||||
console.log(tink.standardExport);
|
||||
let tinkTestAccount: tink.TinkAccount;
|
||||
|
||||
tap.test('should create a valid tink account', async () => {
|
||||
tinkTestAccount = new tink.TinkAccount(
|
||||
testQenv.getEnvVarOnDemand('TINK_CLIENT_ID'),
|
||||
testQenv.getEnvVarOnDemand('TINK_CLIENT_SECRET')
|
||||
);
|
||||
expect(tinkTestAccount).toBeInstanceOf(tink.TinkAccount);
|
||||
});
|
||||
|
||||
tap.test('should report tink as healthy', async () => {
|
||||
await expectAsync(tinkTestAccount.getTinkHealthyBoolean()).toBeTrue();
|
||||
});
|
||||
|
||||
tap.test('should create a valid request', async () => {
|
||||
await tinkTestAccount.request('', 'POST', '', {});
|
||||
})
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user