2019-10-30 09:48:24 -04:00
|
|
|
import { run } from "@ember/runloop";
|
2016-09-13 15:14:17 -04:00
|
|
|
import Wizard from "wizard/wizard";
|
|
|
|
import initializer from "wizard/initializers/load-helpers";
|
|
|
|
|
|
|
|
let app;
|
|
|
|
let started = false;
|
|
|
|
|
|
|
|
export default function() {
|
2019-10-30 09:48:24 -04:00
|
|
|
run(() => (app = Wizard.create({ rootElement: "#ember-testing" })));
|
2016-09-13 15:14:17 -04:00
|
|
|
|
|
|
|
if (!started) {
|
2016-11-25 14:29:24 -05:00
|
|
|
initializer.initialize(app);
|
2016-09-13 15:14:17 -04:00
|
|
|
app.start();
|
|
|
|
started = true;
|
|
|
|
}
|
|
|
|
app.setupForTesting();
|
|
|
|
app.injectTestHelpers();
|
|
|
|
return app;
|
|
|
|
}
|