Skip to content

Commit

Permalink
ensure TestModuleForComponent.teardownComponent run before TestModule…
Browse files Browse the repository at this point in the history
….tearDownTestElements
  • Loading branch information
tsing80 committed Oct 9, 2015
1 parent 50ada04 commit 6cc48d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ember-test-helpers/test-module-for-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ export default TestModule.extend({
throw new Error("component integration tests do not support `subject()`.");
};
this.setupSteps.push(this.setupComponentIntegrationTest);
this.teardownSteps.push(this.teardownComponent);
this.teardownSteps.unshift(this.teardownComponent);
}

if (Ember.View && Ember.View.views) {
this.setupSteps.push(this._aliasViewRegistry);
this.teardownSteps.push(this._resetViewRegistry);
this.teardownSteps.unshift(this._resetViewRegistry);
}
},

Expand Down

0 comments on commit 6cc48d5

Please sign in to comment.