Template
1
0
Files
boilerplate/tests/route.test.ts
2025-04-18 20:18:50 +00:00

15 lines
395 B
TypeScript

import { assertEquals } from "@std/assert";
import { describe, it } from "@std/testing/bdd";
import { relay } from "./mocks/relay.ts";
describe("Relay", () => {
it("should create a new user", async () => {
const userId = await relay.post("/users", { name: "John Doe", email: "john.doe@fixture.none" });
console.log({ userId });
assertEquals(typeof userId, "string");
});
});