mirror of https://github.com/sveltejs/svelte
parent
d419274afd
commit
0e0da70917
@ -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