mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:00:42 +00:00
fix(lint): resolve oxlint errors
This commit is contained in:
committed by
Peter Steinberger
parent
faad655c21
commit
6f7c89ce21
@@ -2213,7 +2213,6 @@ describe("memory plugin e2e", () => {
|
||||
|
||||
try {
|
||||
const { default: memoryPlugin } = await import("./index.js");
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
const registeredTools: any[] = [];
|
||||
const mockApi = {
|
||||
id: "memory-lancedb",
|
||||
@@ -2228,7 +2227,6 @@ describe("memory plugin e2e", () => {
|
||||
},
|
||||
runtime: {},
|
||||
logger: { info: vi.fn(), warn: vi.fn(), error: vi.fn(), debug: vi.fn() },
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
registerTool: (tool: any, opts: any) => {
|
||||
registeredTools.push({ tool, opts });
|
||||
},
|
||||
@@ -2238,7 +2236,6 @@ describe("memory plugin e2e", () => {
|
||||
resolvePath: (p: string) => p,
|
||||
};
|
||||
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
memoryPlugin.register(mockApi as any);
|
||||
const forgetTool = registeredTools.find((t) => t.opts?.name === "memory_forget")?.tool;
|
||||
expect(forgetTool).toBeDefined();
|
||||
|
||||
Reference in New Issue
Block a user