mirror of https://github.com/sveltejs/svelte
Merge pull request #2631 from EmilTholin/reactive-values-fixed
Check 'injected' and 'fixed_reactive_declarations' independentlypull/2670/head
commit
1eca19f371
@ -0,0 +1,11 @@
|
||||
export default {
|
||||
html: `
|
||||
<p>4</p>
|
||||
`,
|
||||
|
||||
test({ assert, component, target }) {
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<p>4</p>
|
||||
`);
|
||||
}
|
||||
};
|
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
const num = 2;
|
||||
$: squared = num * num;
|
||||
</script>
|
||||
|
||||
<p>{squared}</p>
|
Loading…
Reference in new issue