2018-08-11 22:29:02 +00:00
|
|
|
import { tap, expect } from 'tapbundle';
|
2016-11-01 17:27:57 +00:00
|
|
|
|
2018-08-11 22:29:02 +00:00
|
|
|
import * as smartacme from '../ts/index';
|
2017-01-22 20:50:04 +00:00
|
|
|
|
2018-08-11 22:29:02 +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 () => {
|
2018-08-11 22:29:02 +00:00
|
|
|
smartAcmeInstance = new smartacme.SmartAcme();
|
2018-08-12 18:58:59 +00:00
|
|
|
await smartAcmeInstance.init();
|
2018-08-11 22:29:02 +00:00
|
|
|
console.log(smartAcmeInstance.directoryUrls);
|
2018-08-11 23:35:14 +00:00
|
|
|
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();
|