mimosa-ember-test
Version:
A Mimosa module for testing Ember apps
26 lines (19 loc) • 451 B
JavaScript
import Ember from 'ember';
import Application from 'app';
export default function(attrs) {
var App;
var attributes = Ember.merge({
rootElement: '#ember-testing',
LOG_ACTIVE_GENERATION: false,
LOG_VIEW_LOOKUPS: false
}, attrs);
Ember.run(function() {
App = Application.create(attributes);
App.Router.reopen({
location: 'none'
});
App.setupForTesting();
App.injectTestHelpers();
});
return App;
}