Sha256: 708302865f4ae566a9099734887901a6c945da3596664383c066d9824ed2ca1a
Contents?: true
Size: 829 Bytes
Versions: 10
Compression:
Stored size: 829 Bytes
Contents
import Application from '@ember/application'; import { initialize } from 'client-app/initializers/app-init'; import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; import { run } from '@ember/runloop'; module('Unit | Initializer | app-init', function(hooks) { setupTest(hooks); hooks.beforeEach(function() { this.TestApplication = Application.extend(); this.TestApplication.initializer({ name: 'initializer under test', initialize }); this.application = this.TestApplication.create({ autoboot: false }); }); hooks.afterEach(function() { run(this.application, 'destroy'); }); // Replace this with your real tests. test('it works', async function(assert) { await this.application.boot(); assert.ok(true); }); });
Version data entries
10 entries across 10 versions & 1 rubygems