2019-01-06 19:41:21 +00:00
|
|
|
import { tap, expect } from '@pushrocks/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();
|
2019-01-06 19:41:21 +00:00
|
|
|
await smartAcmeInstance.init({
|
|
|
|
accountEmail: 'domains@lossless.org',
|
|
|
|
accountPrivateKey: null,
|
|
|
|
removeChallenge: async (...args) => {
|
|
|
|
console.log(args);
|
|
|
|
},
|
|
|
|
setChallenge: async (...args) => {
|
|
|
|
console.log(args);
|
|
|
|
}
|
|
|
|
});
|
2019-01-06 19:41:42 +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();
|