diff --git a/tests/auth-worker.test.ts b/tests/auth-worker.test.ts index ea5aa86..a1d22d7 100644 --- a/tests/auth-worker.test.ts +++ b/tests/auth-worker.test.ts @@ -36,6 +36,11 @@ describe("cfw-auth worker", () => { expect(response.status).toBe(404); }); + it("does not expose a custom Autumn sync endpoint", async () => { + const response = await worker.fetch(new Request("http://auth.local/internal/autumn/sync"), env); + expect(response.status).toBe(404); + }); + it("exposes Better Auth OpenAPI reference", async () => { const response = await worker.fetch(new Request("http://auth.local/api/auth/reference"), env); expect(response.status).toBe(200);