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/element-ref/_config.js

16 lines
266 B

export default {
snapshot(target) {
const h1 = target.querySelector('h1');
return {
h1,
};
},
test(assert, target, snapshot, component) {
const h1 = target.querySelector('h1');
assert.equal(h1, snapshot.h1);
assert.equal(component.h1, h1);
}
};