mirror of https://github.com/sveltejs/svelte
parent
6f983156e4
commit
55c1af162b
@ -0,0 +1,7 @@
|
|||||||
|
export default {
|
||||||
|
html: `<div class='foo bar'>hello</div>`,
|
||||||
|
test({ assert, component, target }) {
|
||||||
|
component.blah = 'goodbye';
|
||||||
|
assert.htmlEqual(target.innerHTML, `<div class='foo bar'>goodbye</div>`);
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
export let blah = 'hello';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class='foo' class:bar={true} {...{}}>{blah}</div>
|
Loading…
Reference in new issue