Template
1
0

fix: tests

This commit is contained in:
2025-04-18 22:59:37 +00:00
parent b0a0494a28
commit 2e8d6b76d7

View File

@@ -1,6 +1,6 @@
import "./mocks/server.ts";
import { assertEquals, assertObjectMatch } from "@std/assert";
import { assertEquals, assertObjectMatch, assertRejects } from "@std/assert";
import { afterAll, beforeAll, describe, it } from "@std/testing/bdd";
import { relay } from "./mocks/relay.ts";
@@ -54,6 +54,6 @@ describe("Relay", () => {
});
it("should reject .actions with error", async () => {
assertEquals(await relay.get("/add-two", { a: -1, b: 1 }), 2);
await assertRejects(() => relay.get("/add-two", { a: -1, b: 1 }), "Invalid input numbers added");
});
});