diff --git a/packages/ember-application/lib/system/engine-instance.js b/packages/ember-application/lib/system/engine-instance.js index e8453736a2c..3754719b745 100644 --- a/packages/ember-application/lib/system/engine-instance.js +++ b/packages/ember-application/lib/system/engine-instance.js @@ -188,7 +188,8 @@ const EngineInstance = EmberObject.extend(RegistryProxyMixin, ContainerProxyMixi 'router:main', P`-bucket-cache:main`, '-view-registry:main', - `renderer:-${env.isInteractive ? 'dom' : 'inert'}` + `renderer:-${env.isInteractive ? 'dom' : 'inert'}`, + 'service:-document' ]; singletons.forEach(key => this.register(key, parent.lookup(key), { instantiate: false })); diff --git a/packages/ember-application/tests/system/application_instance_test.js b/packages/ember-application/tests/system/application_instance_test.js index 2ea2048d0e2..616c28292db 100644 --- a/packages/ember-application/tests/system/application_instance_test.js +++ b/packages/ember-application/tests/system/application_instance_test.js @@ -139,7 +139,7 @@ QUnit.test('unregistering a factory clears all cached instances of that factory' }); QUnit.test('can build and boot a registered engine', function(assert) { - assert.expect(10); + assert.expect(11); let ChatEngine = Engine.extend(); let chatEngineInstance; @@ -174,7 +174,8 @@ QUnit.test('can build and boot a registered engine', function(assert) { 'router:main', P`-bucket-cache:main`, '-view-registry:main', - '-environment:main' + '-environment:main', + 'service:-document' ]; let env = appInstance.lookup('-environment:main');