Skip to content

Commit

Permalink
failing test for #569
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed May 6, 2017
1 parent 2faf788 commit 895b092
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/runtime/samples/component-if-placement/Component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{#if true}}
<span>Component</span>
{{/if}}
19 changes: 19 additions & 0 deletions test/runtime/samples/component-if-placement/_config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
export default {
solo: true,
data: {
flag: true
},
html: `
<span>Before</span>
<span>Component</span>
<span>After</span>
`,
test ( assert, component, target ) {
component.set( { flag: false } );
assert.htmlEqual( target.innerHTML, `
<span>Before</span>
<span>Component</span>
<span>After</span>
`);
}
};
14 changes: 14 additions & 0 deletions test/runtime/samples/component-if-placement/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<span>Before</span>
{{#if flag}}
<Component/>
{{else}}
<Component/>
{{/if}}
<span>After</span>

<script>
import Component from './Component.html';
export default {
components: { Component }
};
</script>

0 comments on commit 895b092

Please sign in to comment.