Skip to content

Commit

Permalink
Test for sveltejs#4061
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Johnson committed Dec 10, 2019
1 parent 0a6310f commit cde2948
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
@@ -0,0 +1 @@
<slot/>
5 changes: 5 additions & 0 deletions test/runtime/samples/component-slot-let-in-slot/Outer.svelte
@@ -0,0 +1,5 @@
<script>
export let prop
</script>

<slot value={prop} />
12 changes: 12 additions & 0 deletions test/runtime/samples/component-slot-let-in-slot/_config.js
@@ -0,0 +1,12 @@
export default {
props: {
prop: 'a',
},

html: 'a',

test({ assert, component, target }) {
component.prop = 'b';
assert.htmlEqual( target.innerHTML, 'b' );
}
};
10 changes: 10 additions & 0 deletions test/runtime/samples/component-slot-let-in-slot/main.svelte
@@ -0,0 +1,10 @@
<script>
import Outer from './Outer.svelte'
import Inner from './Inner.svelte'
export let prop
</script>

<Outer {prop} let:value>
<Inner>{value}</Inner>
</Outer>

0 comments on commit cde2948

Please sign in to comment.