Skip to content

Commit

Permalink
Test for unknown dynamic component
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeart committed Sep 15, 2018
1 parent bdd2fda commit 3357109
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/integration/components/angle-bracket-invocation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ module('Integration | Component | angle-bracket-invocation', function(hooks) {
});

module('dynamic component support', function() {
test("if we don't know this component - DOM must be empty", async function(assert) {
await render(hbs`
{{component 'does-not-exist'}}
`);

assert.dom().doesNotExist();
});

test('invoke dynamic - local, self-closing', async function(assert) {
this.owner.register('template:components/foo-bar', hbs`hi rwjblue!`);

Expand Down

0 comments on commit 3357109

Please sign in to comment.