mirror of https://github.com/openclaw/openclaw.git
fix(xai): repair extension test boundaries
This commit is contained in:
parent
1e424990a2
commit
dba1b31243
|
|
@ -1,5 +1,5 @@
|
|||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import { withFetchPreconnect } from "../../src/test-utils/fetch-mock.js";
|
||||
import { withFetchPreconnect } from "../../test/helpers/extensions/fetch-mock.js";
|
||||
import { createXSearchTool } from "./x-search.js";
|
||||
|
||||
function installXSearchFetch(payload?: Record<string, unknown>) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { afterAll, afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import type { RuntimeWebFirecrawlMetadata } from "../secrets/runtime-web-tools.types.js";
|
||||
import type { RuntimeWebFetchFirecrawlMetadata } from "../secrets/runtime-web-tools.types.js";
|
||||
import type { RuntimeWebSearchMetadata } from "../secrets/runtime-web-tools.types.js";
|
||||
import { withFetchPreconnect } from "../test-utils/fetch-mock.js";
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ function requireWebSearchTool(config: OpenClawConfig, runtimeWebSearch?: Runtime
|
|||
|
||||
function requireWebFetchTool(
|
||||
config: OpenClawConfig,
|
||||
runtimeFirecrawl?: RuntimeWebFirecrawlMetadata,
|
||||
runtimeFirecrawl?: RuntimeWebFetchFirecrawlMetadata,
|
||||
) {
|
||||
const tool = createWebFetchTool({
|
||||
config,
|
||||
|
|
|
|||
Loading…
Reference in New Issue