import { html, stubNetwork } from "../../helpers.ts"; import { assertEquals, assertStringIncludes } from "@std/assert"; import { fetchRichContent } from "../../../services/rich-content-service.ts"; Deno.test("soundcloud provider", async () => { using _ = stubNetwork(() => html(` `) ); const sc = await fetchRichContent("https://soundcloud.com/artist/track"); assertEquals(sc?.type, "soundcloud"); assertStringIncludes( sc?.embedUrl ?? "", encodeURIComponent("https://soundcloud.com/artist/track"), ); });