mirror of
https://github.com/SrIzan10/rickroll.git
synced 2026-06-23 00:52:39 +00:00
15 lines
361 B
TypeScript
15 lines
361 B
TypeScript
import { worker } from "../src/index";
|
|
|
|
test("GET /", async () => {
|
|
const result = await worker.fetch(
|
|
new Request("http://falcon", { method: "GET" }),
|
|
{},
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
{} as any
|
|
);
|
|
expect(result.status).toBe(200);
|
|
|
|
const text = await result.text();
|
|
expect(text).toBe("Hello World from GET!");
|
|
});
|