Precise DOM morphing
morphing typescript dom
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

More tests passing

+3 -3
+3 -3
test/nanomorph.test.js
··· 129 129 expect(a.value).to.equal(""); 130 130 }); 131 131 132 - it.skip("if new tree has value in HTML and old tree does too, set value from new tree", async () => { 132 + it("if new tree has value in HTML and old tree does too, set value from new tree", async () => { 133 133 const a = await fixture(html`<input type="text" value="howdy" />`); 134 134 const b = await fixture(html`<input type="text" value="hi" />`); 135 135 ··· 216 216 expect(a.checked).to.equal(false); 217 217 }); 218 218 219 - it.skip("if new tree has no checked and old tree has checked mutated to true, set value from new tree", async () => { 219 + it("if new tree has no checked and old tree has checked mutated to true, set value from new tree", async () => { 220 220 const a = await fixture(html`<input type="checkbox" />`); 221 221 const b = await fixture(html`<input type="checkbox" />`); 222 222 b.checked = true; ··· 227 227 expect(a.checked).to.equal(true); 228 228 }); 229 229 230 - it.skip("if new tree has checked=false and old tree has checked mutated to true, set value from new tree", async () => { 230 + it("if new tree has checked=false and old tree has checked mutated to true, set value from new tree", async () => { 231 231 const a = await fixture(html`<input type="checkbox" checked=${false} />`); 232 232 const b = await fixture(html`<input type="checkbox" />`); 233 233 b.checked = true;