fix: remove unused imports and params in pi-tools.hooks.test.ts
- Remove unused afterEach import - Prefix unused params parameter with underscore - Fixes lint errors from hook pipeline implementation
This commit is contained in:
parent
e9951301b4
commit
1060664e7c
@ -1,4 +1,4 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { wrapToolWithHooks, type ToolHookContext } from "./pi-tools.hooks.js";
|
||||
import type { AnyAgentTool } from "./pi-tools.types.js";
|
||||
|
||||
@ -22,7 +22,7 @@ function createMockTool(name: string, executeFn?: AnyAgentTool["execute"]): AnyA
|
||||
schema: {} as AnyAgentTool["schema"],
|
||||
execute:
|
||||
executeFn ??
|
||||
(async (_id: string, params: unknown) => {
|
||||
(async (_id: string, _params: unknown) => {
|
||||
return `result from ${name}`;
|
||||
}),
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user