mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 16:13:44 +08:00
8d34f4bbd9
This reverts commit fcb1ca52f9
.
20 lines
426 B
JavaScript
20 lines
426 B
JavaScript
import { run } from "@ember/runloop";
|
|
import Wizard from "wizard/wizard";
|
|
import initializer from "wizard/initializers/load-helpers";
|
|
|
|
let app;
|
|
let started = false;
|
|
|
|
export default function() {
|
|
run(() => (app = Wizard.create({ rootElement: "#ember-testing" })));
|
|
|
|
if (!started) {
|
|
initializer.initialize(app);
|
|
app.start();
|
|
started = true;
|
|
}
|
|
app.setupForTesting();
|
|
app.injectTestHelpers();
|
|
return app;
|
|
}
|