From d69eb73afc3845c124b48ec536164938da9cbe77 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 5 May 2025 14:39:23 +0000 Subject: [PATCH] fix(test): Add missing checkWetherDomainIsSupported implementation to DummyHandler for interface compliance in tests --- changelog.md | 6 ++++++ test/test.smartacme.ts | 1 + ts/00_commitinfo_data.ts | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 39b69d1..f9924ea 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-05-05 - 7.3.2 - fix(test) +Add missing checkWetherDomainIsSupported implementation to DummyHandler for interface compliance in tests + +- Implemented the missing checkWetherDomainIsSupported method in the DummyHandler to satisfy IChallengeHandler interface requirements +- Ensured that tests now correctly instantiate the DummyHandler without interface errors + ## 2025-05-05 - 7.3.1 - fix(core) Refactor import paths and update dependency references diff --git a/test/test.smartacme.ts b/test/test.smartacme.ts index eb16497..6499c1f 100644 --- a/test/test.smartacme.ts +++ b/test/test.smartacme.ts @@ -8,6 +8,7 @@ class DummyHandler implements IChallengeHandler { getSupportedTypes(): string[] { return ['dns-01']; } async prepare(_: any): Promise { /* no-op */ } async cleanup(_: any): Promise { /* no-op */ } + async checkWetherDomainIsSupported(_: string): Promise { return true; } } tap.test('constructor throws without challengeHandlers', async () => { diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index d61bf6f..9131312 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartacme', - version: '7.3.1', + version: '7.3.2', description: 'A TypeScript-based ACME client for LetsEncrypt certificate management with a focus on simplicity and power.' }