29 lines
756 B
JavaScript
29 lines
756 B
JavaScript
import Application from '@ember/application';
|
|
|
|
import { initialize } from 'gwt-frontend/initializers/load-book-data';
|
|
import { module, test } from 'qunit';
|
|
import { run } from '@ember/runloop';
|
|
|
|
module('Unit | Initializer | load-book-data', function(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');
|
|
});
|
|
|
|
// TODO: Replace this with your real tests.
|
|
test('it works', async function(assert) {
|
|
await this.application.boot();
|
|
|
|
assert.ok(true);
|
|
});
|
|
});
|