letterxpress/test/test.ts
2019-11-18 16:18:58 +00:00

18 lines
548 B
TypeScript

import { expect, tap } from '@pushrocks/tapbundle';
import * as letterxpress from '../ts/index';
import { Qenv } from '@pushrocks/qenv';
let testQenv = new Qenv('./', './.nogit/');
let testAccount: letterxpress.LetterXpressAccount;
tap.test('should create a valid account', async () => {
testAccount = new letterxpress.LetterXpressAccount({
apiKey: testQenv.getEnvVarOnDemand('API_TOKEN'),
email: testQenv.getEnvVarOnDemand('API_EMAIL')
});
expect(testAccount).to.be.instanceOf(letterxpress.LetterXpressAccount);
});
tap.start();