fix(wikis): refine projectId schema in searchWikiPagesShape

This commit is contained in:
Lucas Winther
2026-09-07 02:51:46 +02:00
parent 16e54614ac
commit 2fb25a9604
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -1549,6 +1549,9 @@ describe("Wikis Tools", () => {
expect(() => schema.parse({ limit: 0 })).toThrow();
expect(() => schema.parse({ limit: -5 })).toThrow();
expect(() => schema.parse({ limit: 150 })).toThrow();
expect(() => schema.parse({ projectId: "" })).toThrow();
expect(() => schema.parse({ projectId: 0 })).toThrow();
expect(() => schema.parse({ projectId: -1 })).toThrow();
});
test("handleSearchWikiPages catches errors and returns error response", async () => {