Files
threshold-ui/ui/desktop/tests/unit/initializers/ipc-test.js
T

29 lines
729 B
JavaScript

import Application from '@ember/application';
import { initialize } from 'desktop/initializers/ipc';
import { module, test } from 'qunit';
import { run } from '@ember/runloop';
module('Unit | Initializer | ipc', 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);
});
});