add test folder

This commit is contained in:
Lexie Love 2023-02-10 14:26:01 -06:00
parent 83ede78a1d
commit 717fd16adc
1 changed files with 9 additions and 0 deletions

9
test/utils.ts Normal file
View File

@ -0,0 +1,9 @@
import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { parseYoutubeId } from "../utils.ts";
Deno.test("parseYoutubeId", () => {
const url = parseYoutubeId("https://www.youtube.com/watch?v=ylAF0WNvLx0");
assertEquals(url, "ylAF0WNvLx0");
});