mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08:00
FIX: Clear the outlet cache before and after tests
This commit is contained in:
parent
ca5ed77b43
commit
b07a2baedc
|
@ -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>`);
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user