mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 23:13:40 +08:00
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();
|
clearHTMLCache();
|
||||||
resetPluginApi();
|
resetPluginApi();
|
||||||
|
|
||||||
|
if (options.site) {
|
||||||
|
resetSite(currentSettings(), options.site);
|
||||||
|
}
|
||||||
|
|
||||||
Discourse.reset();
|
Discourse.reset();
|
||||||
this.container = getOwner(this);
|
this.container = getOwner(this);
|
||||||
setURLContainer(this.container);
|
setURLContainer(this.container);
|
||||||
setDefaultOwner(this.container);
|
setDefaultOwner(this.container);
|
||||||
|
|
||||||
if (options.site) {
|
|
||||||
resetSite(currentSettings(), options.site);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options.beforeEach) {
|
if (options.beforeEach) {
|
||||||
options.beforeEach.call(this);
|
options.beforeEach.call(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user