smartacme/test/test.ts

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