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/compiler/inline-expressions/_config.js

12 lines
205 B

export default {
data: {
a: 1,
b: 2
},
html: '<p>1 + 2 = 3</p>',
test ( assert, component, target ) {
component.set({ a: 3, b: 4 });
assert.equal( target.innerHTML, '<p>3 + 4 = 7</p>' );
}
};