mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
Move mirage server create to module-for-acceptance tests file
This commit is contained in:
parent
a74b14ae76
commit
68271646eb
5 changed files with 296 additions and 70 deletions
|
@ -9,16 +9,16 @@ import './stub-user-notification';
|
|||
import './authenticate-user';
|
||||
|
||||
export default function startApp(attrs) {
|
||||
let application;
|
||||
let application;
|
||||
|
||||
let attributes = Ember.merge({}, config.APP);
|
||||
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override;
|
||||
let attributes = Ember.merge({}, config.APP);
|
||||
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override;
|
||||
|
||||
Ember.run(() => {
|
||||
application = Application.create(attributes);
|
||||
application.setupForTesting();
|
||||
application.injectTestHelpers();
|
||||
});
|
||||
Ember.run(() => {
|
||||
application = Application.create(attributes);
|
||||
application.setupForTesting();
|
||||
application.injectTestHelpers();
|
||||
});
|
||||
|
||||
return application;
|
||||
return application;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue