discourse/app/assets/javascripts/wizard/test/helpers/start-app.js.es6
2016-09-22 09:52:19 -04:00

19 lines
390 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.start();
started = true;
}
app.setupForTesting();
app.injectTestHelpers();
return app;
}