Skip to content

Instantly share code, notes, and snippets.

@lambtron
Created March 29, 2022 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lambtron/fb140fffc129d078a876cf1052947f6f to your computer and use it in GitHub Desktop.
Save lambtron/fb140fffc129d078a876cf1052947f6f to your computer and use it in GitHub Desktop.
Simple url test with `deno test`.
// url_test.ts
import { assertEquals } from "https://deno.land/std@0.132.0/testing/asserts.ts";
Deno.test("url test", () => {
const url = new URL("./foo.js", "https://deno.land/");
assertEquals(url.href, "https://deno.land/foo.js");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment