Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chancancode committed Mar 31, 2016
1 parent a4bd0e8 commit df38246
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ moduleFor('Components test: curly components', class extends RenderingTest {
assert.equal($span.attr('class'), 'inner');
}

['@test a void element does not have childNodes'](assert) {
['@test an empty component does not have childNodes'](assert) {
let fooBarInstance;
let FooBarComponent = Component.extend({
tagName: 'input',
Expand All @@ -427,13 +427,13 @@ moduleFor('Components test: curly components', class extends RenderingTest {

this.render('{{foo-bar}}');

this.assertComponentElement(this.firstChild, { tagName: 'input', attrs: { 'class': classes('ember-view') } } );
this.assertComponentElement(this.firstChild, { tagName: 'input' });

assert.strictEqual(fooBarInstance.element.childNodes.length, 0);

this.runTask(() => this.rerender());

this.assertComponentElement(this.firstChild, { tagName: 'input', attrs: { 'class': classes('ember-view') } } );
this.assertComponentElement(this.firstChild, { tagName: 'input' });

assert.strictEqual(fooBarInstance.element.childNodes.length, 0);
}
Expand Down

0 comments on commit df38246

Please sign in to comment.