deno test?import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; Deno.test("sum test", () => { const result = 2 + 3; assertEquals(result, 5); });
deno test.import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; Deno.test("async test", async () => { const value = await Promise.resolve(10); assertEquals(value, 10); });
deno test.import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts"; Deno.test("test 1", () => { assertEquals(1 + 1, 2); }); Deno.test("test 2", () => { throw new Error("fail"); }); Deno.test("test 3", () => { assertEquals(3 * 3, 9); });
