Skip to content

Commit c54aec8

Browse files
committed
remove tests
1 parent e5e8318 commit c54aec8

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

tests/index.test.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -83,43 +83,4 @@ describe("Cloudflare Docs", () => {
8383
const fullTitle = await textSelector?.evaluate((el) => el.textContent);
8484
expect(fullTitle).toContain("Cloudflare Docs");
8585
});
86-
87-
it("responds with API schema at `/schema`", async () => {
88-
fetchMock
89-
.get("https://raw.githubusercontent.com")
90-
.intercept({ path: "/cloudflare/api-schemas/main/openapi.json" })
91-
.reply(200, JSON.stringify(openAPISchema));
92-
93-
const request = new Request("http://fakehost/schema");
94-
const response = await SELF.fetch(request);
95-
expect(response.headers.get("Content-Type")).toBe("application/json");
96-
const data = (await response.json()) as any;
97-
expect(Object.keys(data)).toMatchInlineSnapshot(`
98-
[
99-
"components",
100-
"info",
101-
"openapi",
102-
"paths",
103-
"security",
104-
"servers",
105-
]
106-
`);
107-
});
108-
109-
it("responds with API docs files at `/api/*`", async () => {
110-
const mockContents = `const some = 'js';`;
111-
112-
fetchMock
113-
.get("https://cloudflare-api-docs-frontend.pages.dev")
114-
.intercept({
115-
path: (p) => {
116-
return p === "//static/js/file.js";
117-
},
118-
})
119-
.reply(200, mockContents);
120-
121-
const request = new Request("http://fakehost/api/static/js/file.js");
122-
const response = await SELF.fetch(request);
123-
expect(await response.text()).toEqual(mockContents);
124-
});
12586
});

0 commit comments

Comments
 (0)