mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-04 12:51:41 -05:00
20 lines
390 B
Text
20 lines
390 B
Text
|
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;
|
||
|
}
|
||
|
|