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/runtime/samples/bindings-coalesced/_config.js

17 lines
262 B

export default {
test(assert, component) {
const { foo, p } = component.refs;
const values = [];
Object.defineProperty(p.childNodes[0], 'data', {
set(value) {
values.push(value);
}
});
foo.double();
assert.deepEqual(values, [6]);
}
};