UNPKG

ember-app-scheduler

Version:

Ember addon to schedule work at different phases of app life cycle.

30 lines (24 loc) 822 B
import { expect } from 'chai'; import { describe, it, beforeEach } from 'mocha'; import Ember from 'ember'; import { initialize } from '<%= dasherizedModulePrefix %>/instance-initializers/<%= dasherizedModuleName %>'; import destroyApp from '../../helpers/destroy-app'; describe('<%= friendlyTestName %>', function() { let application, appInstance; beforeEach(function() { Ember.run(function() { application = Ember.Application.create(); appInstance = application.buildInstance(); }); }); afterEach(function() { Ember.run(appInstance, 'destroy'); destroyApp(application); }); // Replace this with your real tests. it('works', function() { initialize(appInstance); // you would normally confirm the results of the initializer here expect(true).to.be.ok; }); });