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

Function findByCode

packages/lint/src/rules/fonts.test.ts:4–7  ·  view source on GitHub ↗
(html: string, code: string, isSubComposition = true)

Source from the content-addressed store, hash-verified

2import { lintHyperframeHtml } from "../hyperframeLinter.js";
3
4async function findByCode(html: string, code: string, isSubComposition = true) {
5 const result = await lintHyperframeHtml(html, { isSubComposition });
6 return result.findings.filter((f) => f.code === code);
7}
8
9describe("font rules", () => {
10 describe("google_fonts_import", () => {

Callers 1

fonts.test.tsFile · 0.85

Calls 1

lintHyperframeHtmlFunction · 0.85

Tested by

no test coverage detected