BREAKING CHANGE(structure): renamed classes to avoid confusion

This commit is contained in:
2024-06-16 13:56:30 +02:00
parent 3769468b01
commit 55fa1215ae
12 changed files with 6442 additions and 4530 deletions

View File

@ -26,7 +26,7 @@ tap.test('should create a valid instance of SmartAcme', async () => {
},
environment: 'integration',
});
await smartAcmeInstance.init();
await smartAcmeInstance.start();
});
tap.test('should get a domain certificate', async () => {
@ -36,7 +36,7 @@ tap.test('should get a domain certificate', async () => {
tap.test('certmatcher should correctly match domains', async () => {
const certMatcherMod = await import('../ts/smartacme.classes.certmatcher.js');
const certMatcher = new certMatcherMod.CertMatcher();
const certMatcher = new certMatcherMod.SmartacmeCertMatcher();
const matchedCert = certMatcher.getCertificateDomainNameByDomainName('level3.level2.level1');
expect(matchedCert).toEqual('level2.level1');
});