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

14 lines
344 B

export default {
html: `<div style="color: red;">red</div>`,
test({ assert, component, target }) {
const div = target.querySelector( 'div' );
assert.equal( div.style.color, 'red' );
component.color = 'blue';
assert.equal( target.innerHTML, `<div style="color: blue;">blue</div>` );
assert.equal( div.style.color, 'blue' );
}
};