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