33 lines
846 B
JavaScript
33 lines
846 B
JavaScript
import Application from '@ember/application';
|
|
|
|
import { initialize } from 'dummy/initializers/fragment-string';
|
|
import { module, test } from 'qunit';
|
|
import Resolver from 'ember-resolver';
|
|
import { run } from '@ember/runloop';
|
|
|
|
module('Unit | Initializer | fragment-string', function (hooks) {
|
|
hooks.beforeEach(function () {
|
|
this.TestApplication = class TestApplication extends Application {};
|
|
this.TestApplication.initializer({
|
|
name: 'initializer under test',
|
|
initialize,
|
|
});
|
|
|
|
this.application = this.TestApplication.create({
|
|
autoboot: false,
|
|
Resolver,
|
|
});
|
|
});
|
|
|
|
hooks.afterEach(function () {
|
|
run(this.application, 'destroy');
|
|
});
|
|
|
|
// TODO: Replace this with your real tests.
|
|
test('it works', async function (assert) {
|
|
await this.application.boot();
|
|
|
|
assert.ok(true);
|
|
});
|
|
});
|