mirror of https://github.com/sveltejs/svelte
add failing unit test for #592
parent
4e58bd06ff
commit
5c0d40233a
@ -0,0 +1 @@
|
||||
Inner
|
@ -0,0 +1,3 @@
|
||||
{{#if foo}}
|
||||
{{yield}}
|
||||
{{/if}}
|
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
|
||||
test ( assert, component ) {
|
||||
component.set({ foo: false });
|
||||
component.set({ foo: true });
|
||||
}
|
||||
|
||||
};
|
@ -0,0 +1,14 @@
|
||||
<Outer :foo>
|
||||
One
|
||||
<Inner/>
|
||||
</Outer>
|
||||
|
||||
<script>
|
||||
import Outer from './Outer.html';
|
||||
import Inner from './Inner.html';
|
||||
|
||||
export default {
|
||||
data: () => ({ foo: true }),
|
||||
components: { Outer, Inner }
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue