mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 19:03:45 +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();
|
||||
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
Block a user