fix(registry): remove invalid editorial video placeholder

This commit is contained in:
Miguel Ángel
2026-07-11 15:09:10 +00:00
parent 2aadf450e7
commit a355b4e6ab
3 changed files with 16 additions and 40 deletions
+16
View File
@@ -1,7 +1,23 @@
import { describe, it, expect } from "vitest";
import { readFileSync } from "node:fs";
import { resolve } from "node:path";
import { lintHyperframeHtml } from "../hyperframeLinter.js";
describe("media rules", () => {
it("keeps the editorial emphasis registry component free of invalid placeholder media", async () => {
const component = readFileSync(
resolve(
process.cwd(),
"../../registry/components/caption-editorial-emphasis/caption-editorial-emphasis.html",
),
"utf8",
);
const result = await lintHyperframeHtml(component);
expect(result.findings.find((finding) => finding.code === "media_missing_src")).toBeUndefined();
});
it("reports error for duplicate media ids", async () => {
const html = `
<html><body>