You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/hydration/samples/top-level-text/_config.js

14 lines
203 B

export default {
snapshot(target) {
return {
text: target.childNodes[0]
};
},
test(assert, target, snapshot) {
const text = target.childNodes[0];
assert.equal(text, snapshot.text);
}
};