mirror of https://github.com/sveltejs/svelte
parent
4fa9369120
commit
61a96b382a
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
export let foo;
|
||||
</script>
|
||||
|
||||
<p>foo {foo}</p>
|
@ -0,0 +1,16 @@
|
||||
export default {
|
||||
props: {
|
||||
a: 1
|
||||
},
|
||||
|
||||
html: `
|
||||
<p>foo 1</p>
|
||||
`,
|
||||
|
||||
test({ assert, component, target }) {
|
||||
component.a = 2;
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<p>foo 2</p>
|
||||
`);
|
||||
}
|
||||
};
|
@ -0,0 +1,3 @@
|
||||
import Foo from './Foo.svelte';
|
||||
|
||||
export default { Foo };
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Components from './components.js';
|
||||
|
||||
export let a;
|
||||
</script>
|
||||
|
||||
<Components.Foo foo={a}/>
|
Loading…
Reference in new issue