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
1 changed files with 4 additions and 4 deletions

View File

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