2019-11-13 16:21:52 +00:00
|
|
|
import { expect, tap } from '@pushrocks/tapbundle';
|
|
|
|
import * as letterxpress from '../ts/index';
|
|
|
|
|
2019-11-18 16:18:58 +00:00
|
|
|
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 () => {
|
2019-11-18 16:18:58 +00:00
|
|
|
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();
|