chore: 🤖 remove lingering get-config instance

This commit is contained in:
Randall Morey committed 2021-11-05 12:33:09 -04:00
1 parent 9ad9bdbf5e
commit 3aae7c124b
1 file changed
+6 -1
@@ -1,6 +1,5 @@
import { module, test } from 'qunit'; import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit'; import { setupTest } from 'ember-qunit';
import config from 'ember-get-config';
import RESTAdapter from '@ember-data/adapter/rest'; import RESTAdapter from '@ember-data/adapter/rest';
import { InvalidError } from '@ember-data/adapter/error'; import { InvalidError } from '@ember-data/adapter/error';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage'; import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
@@ -10,6 +9,12 @@ module('Unit | Adapter | application', function (hooks) {
setupTest(hooks); setupTest(hooks);
setupMirage(hooks); setupMirage(hooks);
let config;
hooks.beforeEach(function () {
config = this.owner.resolveRegistration('config:environment');
});
test('its namespace is equal to the configured namespace', function (assert) { test('its namespace is equal to the configured namespace', function (assert) {
assert.expect(2); assert.expect(2);
const adapter = this.owner.lookup('adapter:application'); const adapter = this.owner.lookup('adapter:application');