mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 03:40:22 +00:00
deps: update fast-xml-parser and markdown-it (#52541)
* style: format test files * deps: bump fast-xml-parser override
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user