// import EmberError from '@ember/error';
// import EmberObject from '@ember/object';
import { Planet, Moon, Star } from 'dummy/tests/support/dummy-models';
import { createOwner, createStore } from 'dummy/tests/support/store';
import { module, test } from 'qunit';
// import { getOwner } from '@ember/application';
// import { waitForSource } from 'ember-orbit/test-support';
import Controller from '@ember/controller';
import Route from '@ember/routing/route';

module('Integration - Config', function(hooks) {
  let owner;
  let store;

  hooks.beforeEach(function() {
    owner = createOwner();
    owner.register('config:environment', {
      orbit: {
        types: {
          model: 'orbit-model',
          source: 'orbit-source',
          strategy: 'orbit-strategy'
        },
        collections: {
          models: 'orbit-models',
          sources: 'orbit-sources',
          strategies: 'orbit-strategies'
        },
        services: {
          store: 'orbit-store',
          coordinator: 'orbit-coordinator',
          schema: 'data-schema',
          keyMap: 'orbit-key-map'
        }
      }
    }, { instantiate: false });
    const models = { planet: Planet, moon: Moon, star: Star };
    store = createStore({ models, owner });
    owner.register('controller:application', Controller);
    owner.register('route:application', Route);
  });

  hooks.afterEach(function() {
    store = null;
    owner = null;
  });

  test('registrations respect config', async function(assert) {
    assert.equal(owner.lookup('service:orbit-store'), store, 'store service registration is named from configuration');
    assert.ok(owner.resolveRegistration('orbit-model:planet'), 'model factory registration is named from configuration');
    assert.ok(owner.lookup('orbit-source:store'), 'source registation is named from configuration');
    assert.ok(owner.lookup('orbit-source:store').schema, 'schema is injected successfully on sources');
    assert.ok(owner.lookup('service:data-schema'), 'unconfigured lookup type falls back to default configuration');
    assert.equal(owner.lookup('controller:application').orbitStore, store, 'configured store name is camelized for controller and route injection');
    assert.equal(owner.lookup('route:application').orbitStore, store, 'configured store name is camelized for controller and route injection');
  });
});

@@ -1,90 +1,4 @@
-// import EmberError from '@ember/error';%0A// import EmberObject from '@ember/object';%0A
 impo
@@ -176,119 +176,8 @@
 t';%0A
-// import %7B getOwner %7D from '@ember/application';%0A// import %7B waitForSource %7D from 'ember-orbit/test-support';%0A
 impo

Remove unused imports