diff --git a/packages/core/src/compiler/htmlBundler.test.ts b/packages/core/src/compiler/htmlBundler.test.ts index b820d536fa..b9a2649c77 100644 --- a/packages/core/src/compiler/htmlBundler.test.ts +++ b/packages/core/src/compiler/htmlBundler.test.ts @@ -1363,21 +1363,24 @@ describe("bundleToSingleHtml", () => {
+
`, "bgm.mp3": "", "narr.mp3": "", + "demo.mp4": "", }); const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); try { const bundled = await bundleToSingleHtml(dir); - // Sanity: the compiler MUST have emitted data-end for both audio elements, + // Sanity: the compiler MUST have emitted data-end for every media element, // so the linter is actually seeing the compiled shape (not the raw source). expect(bundled).toContain('id="bgm"'); expect(bundled).toMatch(/id="bgm"[^>]*data-end="18"|data-end="18"[^>]*id="bgm"/); expect(bundled).toMatch(/id="narration"[^>]*data-end="15"|data-end="15"[^>]*id="narration"/); + expect(bundled).toMatch(/id="demo"[^>]*data-end="14"|data-end="14"[^>]*id="demo"/); const staticGuardWarnings = warnSpy.mock.calls .map((call) => String(call[0] ?? ""))