(style: string)
| 688 | |
| 689 | describe("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"); |
no test coverage detected