From 717fd16adc94a2a31979f9fd36217e94bc202405 Mon Sep 17 00:00:00 2001 From: Lexie Love Date: Fri, 10 Feb 2023 14:26:01 -0600 Subject: [PATCH] add test folder --- test/utils.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/utils.ts diff --git a/test/utils.ts b/test/utils.ts new file mode 100644 index 0000000..a0b90bb --- /dev/null +++ b/test/utils.ts @@ -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"); +}); \ No newline at end of file