test: expand include coverage

This commit is contained in:
Peter Steinberger
2026-01-12 00:30:23 +00:00
parent 26cbbafc86
commit 9f9f6b75e7
2 changed files with 78 additions and 15 deletions

View File

@@ -11,18 +11,12 @@ const noopLogger = {
};
type Registered = {
methods: Map<
string,
(ctx: Record<string, unknown>) => Promise<unknown> | unknown
>;
methods: Map<string, (ctx: Record<string, unknown>) => unknown>;
tools: unknown[];
};
function setup(config: Record<string, unknown>): Registered {
const methods = new Map<
string,
(ctx: Record<string, unknown>) => Promise<unknown> | unknown
>();
const methods = new Map<string, (ctx: Record<string, unknown>) => unknown>();
const tools: unknown[] = [];
plugin.register({
id: "voice-call",
@@ -174,7 +168,7 @@ describe("voice-call plugin", () => {
};
const program = new Command();
const logSpy = vi.spyOn(console, "log").mockImplementation(() => {});
register({
await register({
id: "voice-call",
name: "Voice Call",
description: "test",