mirror of https://github.com/sveltejs/svelte
14 lines
351 B
14 lines
351 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.set({ color: 'blue' });
|
|
assert.equal( target.innerHTML, `<div style="color: blue;">blue</div>` );
|
|
assert.equal( div.style.color, 'blue' );
|
|
}
|
|
};
|