permanent-waves/test/utils.ts

9 lines
282 B
TypeScript
Raw Normal View History

2023-02-10 20:26:01 +00:00
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");
});