add test for hydration of nested element with expression sibling

pull/6290/head
haveyaseen 5 years ago committed by Conduitry
parent 0eeaa9d916
commit 702da9bfad

@ -0,0 +1,19 @@
export default {
snapshot(target) {
const p = target.querySelector("p");
return {
p,
text: p.childNodes[0],
span: p.querySelector("span"),
};
},
test(assert, target, snapshot) {
const p = target.querySelector("p");
assert.equal(p, snapshot.p);
assert.equal(p.childNodes[0], snapshot.text);
assert.equal(p.querySelector("span"), snapshot.span);
},
};
Loading…
Cancel
Save