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