mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
test(web): align unit + e2e expectations with section routes
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user