1
2
3
4
5
6
7
8
9
10
11
12
import { assertEquals } from "https://deno.land/std@0.221.0/assert/mod.ts";
import test from "node:test";
// fails
test("synchronous passing test", (t) => {
assertEquals(1, 0);
});
Deno.test("url test", () => {
const url = new URL("./foo.js", "https://deno.land/");
assertEquals(url.href, "https://deno.land/foo.js");
});
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
April 6, 2024