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

Version Path
logster-2.6.1 client-app/tests/unit/initializers/app-init-test.js
logster-2.6.0 client-app/tests/unit/initializers/app-init-test.js
logster-2.5.1 client-app/tests/unit/initializers/app-init-test.js
logster-2.5.0 client-app/tests/unit/initializers/app-init-test.js
logster-2.4.2 client-app/tests/unit/initializers/app-init-test.js
logster-2.4.1 client-app/tests/unit/initializers/app-init-test.js
logster-2.4.0 client-app/tests/unit/initializers/app-init-test.js
logster-2.3.3 client-app/tests/unit/initializers/app-init-test.js
logster-2.3.2 client-app/tests/unit/initializers/app-init-test.js
logster-2.3.1 client-app/tests/unit/initializers/app-init-test.js
logster-2.3.0 client-app/tests/unit/initializers/app-init-test.js
logster-2.2.0 client-app/tests/unit/initializers/app-init-test.js
logster-2.1.1 client-app/tests/unit/initializers/app-init-test.js
logster-1.3.1 client-app/tests/unit/initializers/app-init-test.js