Created
March 29, 2022 01:58
-
-
Save lambtron/fb140fffc129d078a876cf1052947f6f to your computer and use it in GitHub Desktop.
Simple url test with `deno test`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// url_test.ts | |
import { assertEquals } from "https://deno.land/[email protected]/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