ember-app-scheduler
Version:
Ember addon to schedule work at different phases of app life cycle.
25 lines (21 loc) • 658 B
JavaScript
import Ember from 'ember';
import { initialize } from '<%= dasherizedModulePrefix %>/initializers/<%= dasherizedModuleName %>';
import { module, test } from 'qunit';
import destroyApp from '../../helpers/destroy-app';
module('<%= friendlyTestName %>', {
beforeEach() {
Ember.run(() => {
this.application = Ember.Application.create();
this.application.deferReadiness();
});
},
afterEach() {
destroyApp(this.application);
}
});
// Replace this with your real tests.
test('it works', function(assert) {
initialize(this.application);
// you would normally confirm the results of the initializer here
assert.ok(true);
});