FIX: QUnit site has to be set before `reset()`
This commit is contained in:
parent
2523a21fc3
commit
71e747b160
|
@ -170,15 +170,15 @@ export function acceptance(name, options) {
|
|||
clearHTMLCache();
|
||||
resetPluginApi();
|
||||
|
||||
if (options.site) {
|
||||
resetSite(currentSettings(), options.site);
|
||||
}
|
||||
|
||||
Discourse.reset();
|
||||
this.container = getOwner(this);
|
||||
setURLContainer(this.container);
|
||||
setDefaultOwner(this.container);
|
||||
|
||||
if (options.site) {
|
||||
resetSite(currentSettings(), options.site);
|
||||
}
|
||||
|
||||
if (options.beforeEach) {
|
||||
options.beforeEach.call(this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue