mirror of https://github.com/sveltejs/svelte
parent
69e566a746
commit
e8a8f6399a
@ -0,0 +1,12 @@
|
||||
export default {
|
||||
html: `
|
||||
<p style="color: red;"></p>
|
||||
`,
|
||||
|
||||
test({ assert, component, target }) {
|
||||
component.myColor = 'blue';
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<p style="color: blue;"></p>
|
||||
`);
|
||||
}
|
||||
};
|
||||
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
export let myColor = "red";
|
||||
</script>
|
||||
|
||||
<p style:color={myColor} />
|
||||
Loading…
Reference in new issue