MCPcopy
hub / github.com/freshframework/fresh / assertNotSelector

Function assertNotSelector

packages/fresh/tests/test_utils.tsx:261–268  ·  view source on GitHub ↗
(doc: Document, selector: string)

Source from the content-addressed store, hash-verified

259}
260
261export function assertNotSelector(doc: Document, selector: string) {
262 if (doc.querySelector(selector) !== null) {
263 const html = prettyDom(doc);
264 throw new Error(
265 `Selector "${selector}" found in document.\n\n${html}`,
266 );
267 }
268}
269
270export function assertMetaContent(
271 doc: Document,

Callers 3

partials_test.tsxFile · 0.90

Calls 1

prettyDomFunction · 0.85

Tested by

no test coverage detected