svelte/test/runtime/samples/class-shortcut/_config.js

17 lines
329 B

export default {
data: {
isActive: true,
isSelected: true,
myClass: 'one two'
},
html: `<div class="one two is-active isSelected"></div>`,
test ( assert, component, target, window ) {
component.set({ isActive: false });
assert.htmlEqual( target.innerHTML, `
<div class="one two isSelected"></div>
` );
}
};