letterxpress/test/test.ts

18 lines
548 B
TypeScript
Raw Permalink Normal View History

2019-11-13 16:21:52 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
import * as letterxpress from '../ts/index';
import { Qenv } from '@pushrocks/qenv';
let testQenv = new Qenv('./', './.nogit/');
2019-11-18 14:54:40 +00:00
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')
});
2019-11-18 14:54:40 +00:00
expect(testAccount).to.be.instanceOf(letterxpress.LetterXpressAccount);
2019-11-13 16:21:52 +00:00
});
tap.start();