smartacme/test/test.ts
2019-01-06 20:41:42 +01:00

23 lines
598 B
TypeScript

import { tap, expect } from '@pushrocks/tapbundle';
import * as smartacme from '../ts/index';
let smartAcmeInstance: smartacme.SmartAcme;
tap.test('should create a valid instance of SmartAcme', async () => {
smartAcmeInstance = new smartacme.SmartAcme();
await smartAcmeInstance.init({
accountEmail: 'domains@lossless.org',
accountPrivateKey: null,
removeChallenge: async (...args) => {
console.log(args);
},
setChallenge: async (...args) => {
console.log(args);
}
});
// await smartAcmeInstance.getCertificateForDomain('bleu.de');
});
tap.start();