author | ymh <ymh.work@gmail.com> |
Tue, 20 Mar 2018 15:02:40 +0100 | |
changeset 573 | 25f3d28f51b2 |
parent 537 | d2e6ee099125 |
permissions | -rw-r--r-- |
4 | 1 |
import Ember from 'ember'; |
2 |
import Application from '../../app'; |
|
3 |
import config from '../../config/environment'; |
|
4 |
||
5 |
export default function startApp(attrs) { |
|
517 | 6 |
let attributes = Ember.merge({}, config.APP); |
7 |
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override; |
|
4 | 8 |
|
537
d2e6ee099125
upgrade ember + laravel + make everything work
ymh <ymh.work@gmail.com>
parents:
517
diff
changeset
|
9 |
return Ember.run(() => { |
d2e6ee099125
upgrade ember + laravel + make everything work
ymh <ymh.work@gmail.com>
parents:
517
diff
changeset
|
10 |
let application = Application.create(attributes); |
4 | 11 |
application.setupForTesting(); |
12 |
application.injectTestHelpers(); |
|
537
d2e6ee099125
upgrade ember + laravel + make everything work
ymh <ymh.work@gmail.com>
parents:
517
diff
changeset
|
13 |
return application; |
4 | 14 |
}); |
15 |
} |