add test for hydration of nested element with expression sibling

pull/6283/head
haveyaseen 5 years ago
parent 3d05e18bf7
commit 78564dbcc2

@ -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