mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 11:50:43 +00:00
test: reuse web search signal import
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { createWebSearchTool } from "./web-search.js";
|
||||
|
||||
const mocks = vi.hoisted(() => ({
|
||||
runWebSearch: vi.fn(),
|
||||
@@ -19,7 +20,6 @@ describe("web_search signal plumbing", () => {
|
||||
});
|
||||
|
||||
it("passes the agent abort signal into web search runtime execution", async () => {
|
||||
const { createWebSearchTool } = await import("./web-search.js");
|
||||
const controller = new AbortController();
|
||||
const tool = createWebSearchTool({ config: {} });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user