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/class-with-spread-and-bind/_config.js

19 lines
297 B

export default {
props: {
primary: true
},
html: '<div class="test-class primary" role="button"></div>',
test({ assert, component, target }) {
component.primary = true;
assert.htmlEqual(
target.innerHTML,
`
<div class="test-class primary" role="button"></div>
`
);
}
};