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/ignore-unchanged-attribute/_config.js

28 lines
402 B

import counter from './counter.js';
export default {
get props() {
return { x: 1, y: 2 };
},
html: `
<p>1</p>
<p class='2'></p>
`,
test({ assert, component }) {
counter.count = 0;
component.x = 3;
assert.equal(counter.count, 0);
component.x = 4;
component.y = 5;
assert.equal(counter.count, 1);
component.x = 5;
component.y = 5;
assert.equal(counter.count, 1);
}
};