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

18 lines
276 B

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