All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 50s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
634 B
TypeScript
15 lines
634 B
TypeScript
import { html, stubNetwork } from "../../helpers.ts";
|
|
import { assertEquals } from "@std/assert";
|
|
import { fetchRichContent } from "../../../services/rich-content-service.ts";
|
|
|
|
Deno.test("bandcamp provider", async () => {
|
|
using _ = stubNetwork(() =>
|
|
html(`<meta property="og:title" content="Album">
|
|
<meta property="og:video" content="https://bandcamp.com/EmbeddedPlayer/album=1">`)
|
|
);
|
|
const bc = await fetchRichContent("https://artist.bandcamp.com/album/a");
|
|
assertEquals(bc?.type, "bandcamp");
|
|
assertEquals(bc?.title, "Album");
|
|
assertEquals(bc?.embedUrl, "https://bandcamp.com/EmbeddedPlayer/album=1");
|
|
});
|