mirror of https://github.com/openclaw/openclaw.git
deps: update fast-xml-parser and markdown-it (#52541)
* style: format test files * deps: bump fast-xml-parser override
This commit is contained in:
parent
45ede8729e
commit
a61e5d17f0
|
|
@ -1,5 +1,7 @@
|
|||
import type { Client } from "@buape/carbon";
|
||||
import type { GatewayPresenceUpdate } from "discord-api-types/v10";
|
||||
import { buildAgentSessionKey } from "openclaw/plugin-sdk/routing";
|
||||
import { beforeEach, describe, expect, it } from "vitest";
|
||||
import type { DiscordChannelConfigResolved } from "./allow-list.js";
|
||||
import {
|
||||
resolveDiscordMemberAllowed,
|
||||
|
|
@ -20,8 +22,6 @@ import {
|
|||
resolveDiscordAutoThreadReplyPlan,
|
||||
resolveDiscordReplyDeliveryPlan,
|
||||
} from "./threading.js";
|
||||
import { buildAgentSessionKey } from "openclaw/plugin-sdk/routing";
|
||||
import { beforeEach, describe, expect, it } from "vitest";
|
||||
|
||||
describe("resolveDiscordOwnerAllowFrom", () => {
|
||||
it("returns undefined when no allowlist is configured", () => {
|
||||
|
|
|
|||
|
|
@ -29,11 +29,8 @@ describe("mattermost target resolution", () => {
|
|||
});
|
||||
|
||||
it("recognizes explicit targets and ID-shaped values", async () => {
|
||||
const {
|
||||
isExplicitMattermostTarget,
|
||||
isMattermostId,
|
||||
parseMattermostApiStatus,
|
||||
} = await import("./target-resolution.js");
|
||||
const { isExplicitMattermostTarget, isMattermostId, parseMattermostApiStatus } =
|
||||
await import("./target-resolution.js");
|
||||
|
||||
expect(isExplicitMattermostTarget("@alice")).toBe(true);
|
||||
expect(isExplicitMattermostTarget("#town-square")).toBe(true);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
import { listMicrosoftVoices } from "./speech-provider.js";
|
||||
|
||||
const fetchMock = vi.fn<typeof fetch>();
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ describe("nextcloud talk format helpers", () => {
|
|||
});
|
||||
|
||||
it("strips markdown formatting and truncates on word boundaries", () => {
|
||||
expect(
|
||||
stripNextcloudTalkFormatting("**bold** [link](https://example.com) `code`"),
|
||||
).toBe("bold link");
|
||||
expect(stripNextcloudTalkFormatting("**bold** [link](https://example.com) `code`")).toBe(
|
||||
"bold link",
|
||||
);
|
||||
expect(truncateNextcloudTalkText("alpha beta gamma delta", 14)).toBe("alpha beta...");
|
||||
expect(truncateNextcloudTalkText("short", 14)).toBe("short");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -85,9 +85,7 @@ describe("nextcloud talk room info", () => {
|
|||
|
||||
expect(kind).toBeUndefined();
|
||||
expect(readFileSync).toHaveBeenCalledWith("/tmp/nextcloud-secret", "utf-8");
|
||||
expect(log).toHaveBeenCalledWith(
|
||||
"nextcloud-talk: room lookup failed (403) token=room-group",
|
||||
);
|
||||
expect(log).toHaveBeenCalledWith("nextcloud-talk: room lookup failed (403) token=room-group");
|
||||
expect(release).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -12,9 +12,7 @@ describe("tavily client helpers", () => {
|
|||
});
|
||||
|
||||
it("falls back to the default host for invalid base urls", () => {
|
||||
expect(__testing.resolveEndpoint("not a url", "/search")).toBe(
|
||||
"https://api.tavily.com/search",
|
||||
);
|
||||
expect(__testing.resolveEndpoint("not a url", "/search")).toBe("https://api.tavily.com/search");
|
||||
expect(__testing.resolveEndpoint("", "/extract")).toBe("https://api.tavily.com/extract");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -11,10 +11,8 @@ const {
|
|||
telegramBotRuntimeForTest,
|
||||
} = harness;
|
||||
|
||||
const {
|
||||
createTelegramBot: createTelegramBotBase,
|
||||
setTelegramBotRuntimeForTest,
|
||||
} = await import("./bot.js");
|
||||
const { createTelegramBot: createTelegramBotBase, setTelegramBotRuntimeForTest } =
|
||||
await import("./bot.js");
|
||||
|
||||
setTelegramBotRuntimeForTest(
|
||||
telegramBotRuntimeForTest as unknown as Parameters<typeof setTelegramBotRuntimeForTest>[0],
|
||||
|
|
|
|||
|
|
@ -812,7 +812,7 @@
|
|||
"overrides": {
|
||||
"hono": "4.12.8",
|
||||
"@hono/node-server": "1.19.10",
|
||||
"fast-xml-parser": "5.5.6",
|
||||
"fast-xml-parser": "5.5.7",
|
||||
"request": "npm:@cypress/request@3.0.10",
|
||||
"request-promise": "npm:@cypress/request-promise@5.0.0",
|
||||
"file-type": "21.3.4",
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ settings:
|
|||
overrides:
|
||||
hono: 4.12.8
|
||||
'@hono/node-server': 1.19.10
|
||||
fast-xml-parser: 5.5.6
|
||||
fast-xml-parser: 5.5.7
|
||||
request: npm:@cypress/request@3.0.10
|
||||
request-promise: npm:@cypress/request-promise@5.0.0
|
||||
file-type: 21.3.4
|
||||
|
|
@ -465,7 +465,11 @@ importers:
|
|||
specifier: ^6.32.0
|
||||
version: 6.32.0(ws@8.20.0)(zod@4.3.6)
|
||||
|
||||
extensions/microsoft: {}
|
||||
extensions/microsoft:
|
||||
dependencies:
|
||||
node-edge-tts:
|
||||
specifier: ^1.2.10
|
||||
version: 1.2.10
|
||||
|
||||
extensions/minimax: {}
|
||||
|
||||
|
|
@ -4345,8 +4349,8 @@ packages:
|
|||
fast-xml-builder@1.1.4:
|
||||
resolution: {integrity: sha512-f2jhpN4Eccy0/Uz9csxh3Nu6q4ErKxf0XIsasomfOihuSUa3/xw6w8dnOtCDgEItQFJG8KyXPzQXzcODDrrbOg==}
|
||||
|
||||
fast-xml-parser@5.5.6:
|
||||
resolution: {integrity: sha512-3+fdZyBRVg29n4rXP0joHthhcHdPUHaIC16cuyyd1iLsuaO6Vea36MPrxgAzbZna8lhvZeRL8Bc9GP56/J9xEw==}
|
||||
fast-xml-parser@5.5.7:
|
||||
resolution: {integrity: sha512-LteOsISQ2GEiDHZch6L9hB0+MLoYVLToR7xotrzU0opCICBkxOPgHAy1HxAvtxfJNXDJpgAsQN30mkrfpO2Prg==}
|
||||
hasBin: true
|
||||
|
||||
fastq@1.20.1:
|
||||
|
|
@ -7264,7 +7268,7 @@ snapshots:
|
|||
'@aws-sdk/xml-builder@3.972.15':
|
||||
dependencies:
|
||||
'@smithy/types': 4.13.1
|
||||
fast-xml-parser: 5.5.6
|
||||
fast-xml-parser: 5.5.7
|
||||
tslib: 2.8.1
|
||||
|
||||
'@aws/lambda-invoke-store@0.2.4': {}
|
||||
|
|
@ -10900,7 +10904,7 @@ snapshots:
|
|||
dependencies:
|
||||
path-expression-matcher: 1.2.0
|
||||
|
||||
fast-xml-parser@5.5.6:
|
||||
fast-xml-parser@5.5.7:
|
||||
dependencies:
|
||||
fast-xml-builder: 1.1.4
|
||||
path-expression-matcher: 1.2.0
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import { createEmptyPluginRegistry } from "../plugins/registry-empty.js";
|
||||
import { resetPluginRuntimeStateForTest, setActivePluginRegistry } from "../plugins/runtime.js";
|
||||
import type { SpeechProviderPlugin } from "../plugins/types.js";
|
||||
import { getSpeechProvider, listSpeechProviders, normalizeSpeechProviderId } from "./provider-registry.js";
|
||||
import {
|
||||
getSpeechProvider,
|
||||
listSpeechProviders,
|
||||
normalizeSpeechProviderId,
|
||||
} from "./provider-registry.js";
|
||||
|
||||
const loadOpenClawPluginsMock = vi.fn();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue