Sha256: b6be365a62ee78cce8ee525b72141a3d767d178efb6f15e65b85321daf32012c
Contents?: true
Size: 798 Bytes
Versions: 14
Compression:
Stored size: 798 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
14 entries across 14 versions & 1 rubygems