FIX: Clear the outlet cache before and after tests

This commit is contained in:
Robin Ward 2016-11-22 14:50:03 -05:00
parent ca5ed77b43
commit b07a2baedc
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ const GOODBYE = 'javascripts/multi-test/connectors/user-profile-primary/goodbye'
acceptance("Plugin Outlet - Multi Template", {
setup() {
clearCache();
Ember.TEMPLATES[HELLO] = Ember.HTMLBars.compile(`<span class='hello-span'>Hello</span>`);
Ember.TEMPLATES[GOODBYE] = Ember.HTMLBars.compile(`<span class='bye-span'>Goodbye</span>`);
},

View File

@ -4,6 +4,7 @@ import { clearCache } from 'discourse/helpers/plugin-outlet';
const CONNECTOR = 'javascripts/single-test/connectors/user-profile-primary/hello';
acceptance("Plugin Outlet - Single Template", {
setup() {
clearCache();
Ember.TEMPLATES[CONNECTOR] = Ember.HTMLBars.compile(
`
<span class='hello-username'>{{model.username}}</span>