smartacme/test/test.ts

15 lines
411 B
TypeScript
Raw Normal View History

import { tap, expect } from 'tapbundle';
2016-11-01 17:27:57 +00:00
import * as smartacme from '../ts/index';
2017-01-22 20:50:04 +00:00
let smartAcmeInstance: smartacme.SmartAcme;
2016-11-01 17:27:57 +00:00
2018-08-12 18:58:59 +00:00
tap.test('should create a valid instance of SmartAcme', async () => {
smartAcmeInstance = new smartacme.SmartAcme();
2018-08-12 18:58:59 +00:00
await smartAcmeInstance.init();
console.log(smartAcmeInstance.directoryUrls);
await smartAcmeInstance.getCertificateForDomain('bleu.de');
2018-08-12 18:58:59 +00:00
});
2017-01-22 20:50:04 +00:00
2018-08-12 18:58:59 +00:00
tap.start();