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/component-data-dynamic-shor.../_config.js

14 lines
212 B

export default {
props: {
foo: 42
},
html: '<div><p>foo: 42</p></div>',
test({ assert, component, target }) {
component.foo = 99;
assert.equal( target.innerHTML, '<div><p>foo: 99</p></div>' );
}
};