UNPKG

ember-introjs

Version:
32 lines (26 loc) 937 B
import Application from '@ember/application'; import { initialize } from '<%= dasherizedModulePrefix %>/instance-initializers/<%= dasherizedModuleName %>'; import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; import destroyApp from '../../helpers/destroy-app'; module('<%= friendlyTestName %>', function(hooks) { setupTest(hooks); hooks.beforeEach(function() { this.TestApplication = Application.extend(); this.TestApplication.instanceInitializer({ name: 'initializer under test', initialize }); this.application = this.TestApplication.create({ autoboot: false }); this.instance = this.application.buildInstance(); }); hooks.afterEach(function() { destroyApp(this.application); destroyApp(this.instance); }); // Replace this with your real tests. test('it works', async function(assert) { await this.instance.boot(); assert.ok(true); }); });