[GTK] Test gardening
[WebKit-https.git] / Websites / browserbench.org / Speedometer2.0 / resources / todomvc / architecture-examples / emberjs / tests / helpers / start-app.js
1 import Ember from 'ember';
2 import Application from '../../app';
3 import config from '../../config/environment';
4
5 export default function startApp(attrs) {
6     let application;
7
8     // use defaults, but you can override
9     let attributes = Ember.assign({}, config.APP, attrs);
10
11     Ember.run(() => {
12         application = Application.create(attributes);
13         application.setupForTesting();
14         application.injectTestHelpers();
15     });
16
17     return application;
18 }