MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / findSlideshow

Function findSlideshow

packages/lint/src/rules/slideshow.test.ts:4–7  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

2import { lintHyperframeHtml } from "../hyperframeLinter.js";
3
4async function findSlideshow(html: string) {
5 const result = await lintHyperframeHtml(html, { isSubComposition: true });
6 return result.findings.filter((f) => f.code.startsWith("slideshow_"));
7}
8
9describe("slideshow lint rule", () => {
10 it("passes a composition with no slideshow island", async () => {

Callers 1

slideshow.test.tsFile · 0.85

Calls 1

lintHyperframeHtmlFunction · 0.85

Tested by

no test coverage detected