test(web): align unit + e2e expectations with section routes

This commit is contained in:
SnapOtter
2026-06-20 23:35:37 +08:00
parent 0689ae554f
commit 5dbbac6c43
10 changed files with 42 additions and 42 deletions
+3 -3
View File
@@ -179,7 +179,7 @@ describe("docs route logic", () => {
{ name: "Auth", description: "Authentication" },
],
paths: {
"/api/v1/tools/resize": {
"/api/v1/tools/image/resize": {
post: { tags: ["Tools"], summary: "Resize image" },
},
"/api/auth/login": {
@@ -241,7 +241,7 @@ describe("docs route logic", () => {
},
tags: [{ name: "Tools", description: "Processing tools" }],
paths: {
"/api/v1/tools/resize": {
"/api/v1/tools/image/resize": {
post: {
tags: ["Tools"],
summary: "Resize an image",
@@ -293,7 +293,7 @@ describe("docs route logic", () => {
it("marks auth-required endpoints", () => {
const result = generateLlmsFullTxt(fullSpec);
expect(result).toContain("POST /api/v1/tools/resize (auth required)");
expect(result).toContain("POST /api/v1/tools/image/resize (auth required)");
});
it("marks public endpoints", () => {