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

Function elWith

packages/sdk/src/engine/mutate.test.ts:690–695  ·  view source on GitHub ↗
(style: string)

Source from the content-addressed store, hash-verified

688
689describe("setElementStyles key normalization", () => {
690 function elWith(style: string): Element {
691 const parsed = parseMutable(`<div data-hf-id="hf-x" data-hf-root style="${style}"></div>`);
692 const el = parsed.document.querySelector('[data-hf-id="hf-x"]');
693 if (!el) throw new Error("fixture element missing");
694 return el;
695 }
696
697 it("removes a hyphenated property when value is null", () => {
698 const el = elWith("transform-origin: center center; opacity: 0.5");

Callers 1

mutate.test.tsFile · 0.85

Calls 2

parseMutableFunction · 0.85
querySelectorMethod · 0.65

Tested by

no test coverage detected