mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 11:28:38 +00:00
test: normalize skill prompt path assertions on windows
This commit is contained in:
@@ -51,7 +51,7 @@ describe("buildWorkspaceSkillsPrompt", () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
expect(prompt).toContain("Workspace version");
|
expect(prompt).toContain("Workspace version");
|
||||||
expect(prompt).toContain("demo-skill/SKILL.md");
|
expect(prompt.replaceAll("\\", "/")).toContain("demo-skill/SKILL.md");
|
||||||
expect(prompt).not.toContain("Managed version");
|
expect(prompt).not.toContain("Managed version");
|
||||||
expect(prompt).not.toContain("Bundled version");
|
expect(prompt).not.toContain("Bundled version");
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ describe("buildWorkspaceSkillsPrompt", () => {
|
|||||||
expect(prompt).not.toContain("Managed version");
|
expect(prompt).not.toContain("Managed version");
|
||||||
expect(prompt).not.toContain("Bundled version");
|
expect(prompt).not.toContain("Bundled version");
|
||||||
expect(prompt).not.toContain("Extra version");
|
expect(prompt).not.toContain("Extra version");
|
||||||
expect(prompt).toContain("demo-skill/SKILL.md");
|
expect(prompt.replaceAll("\\", "/")).toContain("demo-skill/SKILL.md");
|
||||||
});
|
});
|
||||||
it("keeps synced skills confined under target workspace when frontmatter name uses traversal", async () => {
|
it("keeps synced skills confined under target workspace when frontmatter name uses traversal", async () => {
|
||||||
const sourceWorkspace = await createCaseDir("source");
|
const sourceWorkspace = await createCaseDir("source");
|
||||||
|
|||||||
Reference in New Issue
Block a user