FIX: QUnit site has to be set before reset()

This commit is contained in:
Robin Ward 2020-08-24 16:46:13 -04:00
parent 2523a21fc3
commit 71e747b160

View File

@ -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);
} }