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-11 22:29:02 +00:00
|
|
|
tap.test('should create a valid instance of SmartAcme' , async () => {
|
|
|
|
smartAcmeInstance = new smartacme.SmartAcme();
|
|
|
|
await smartAcmeInstance.init()
|
|
|
|
console.log(smartAcmeInstance.directoryUrls);
|
2018-08-11 23:35:14 +00:00
|
|
|
await smartAcmeInstance.getCertificateForDomain('bleu.de');
|
2017-01-22 20:50:04 +00:00
|
|
|
})
|
|
|
|
|
2018-08-11 22:29:02 +00:00
|
|
|
tap.start();
|