mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 00:43:24 +08:00
19 lines
394 B
JavaScript
19 lines
394 B
JavaScript
import Wizard from "wizard/wizard";
|
|
import initializer from "wizard/initializers/load-helpers";
|
|
|
|
let app;
|
|
let started = false;
|
|
|
|
export default function() {
|
|
Ember.run(() => (app = Wizard.create({ rootElement: "#ember-testing" })));
|
|
|
|
if (!started) {
|
|
initializer.initialize(app);
|
|
app.start();
|
|
started = true;
|
|
}
|
|
app.setupForTesting();
|
|
app.injectTestHelpers();
|
|
return app;
|
|
}
|