diff --git a/tests/routes/things/create.test.ts b/tests/routes/things/create.test.ts index 65e9935..ff76722 100644 --- a/tests/routes/things/create.test.ts +++ b/tests/routes/things/create.test.ts @@ -4,12 +4,16 @@ import { test, expect } from "bun:test" test("create a thing", async () => { const { ky } = await getTestServer() - ky.post("things/create", { - json: { - name: "Thing1", - description: "Thing1 Description", - }, - }) + const createResponse = await ky + .post("things/create", { + json: { + name: "Thing1", + description: "Thing1 Description", + }, + }) + .json<{ ok: boolean }>() + + expect(createResponse).toEqual({ ok: true }) const data = await ky .get("things/list")