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

Function makeDoc

packages/core/src/utils/cssSelector.test.ts:4–8  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

2import { queryByAttr } from "./cssSelector";
3
4function makeDoc(html: string) {
5 const { parseHTML } = require("linkedom");
6 const { document } = parseHTML(`<html><body>${html}</body></html>`);
7 return document;
8}
9
10describe("queryByAttr", () => {
11 it("finds element by exact attribute match", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected