Skip to content

Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.

Use a valid skill slug in the tenant package duplicate tests (#705)

David McKay050471174fdf
diff --git a/server/tests/tenant-package-duplicates.test.ts b/server/tests/tenant-package-duplicates.test.ts
index 6fbc2f69..91ec8c1a 100644
--- a/server/tests/tenant-package-duplicates.test.ts
+++ b/server/tests/tenant-package-duplicates.test.ts
@@ -48,19 +48,19 @@ describe("a package that repeats itself is refused, not half-applied", () => {
test("a skill named twice by one agent", () => {
expect(() =>
validate({
- agents: `agents: [${agent("x", ", skills: [s, s]")}]`,
- skills: `skills: [${skill("s")}]`,
+ agents: `agents: [${agent("x", ", skills: [triage, triage]")}]`,
+ skills: `skills: [${skill("triage")}]`,
}),
- ).toThrow('agent "x" names skill "s" twice');
+ ).toThrow('agent "x" names skill "triage" twice');
});
test("a skill slug repeated within skills.yaml", () => {
expect(() =>
validate({
agents: `agents: [${agent("x")}]`,
- skills: `skills: [${skill("s")}, ${skill("s")}]`,
+ skills: `skills: [${skill("triage")}, ${skill("triage")}]`,
}),
- ).toThrow('skill "s" is declared twice in skills.yaml');
+ ).toThrow('skill "triage" is declared twice in skills.yaml');
});
test("a channel id repeated within channels.yaml", () => {