File tree Expand file tree Collapse file tree
addon/addon-test-support/@ember/test-helpers/-internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import ApplicationInstance from '@ember/application/instance';
33import Application from '@ember/application' ;
44import EmberObject from '@ember/object' ;
55
6- import require , { has } from 'require' ;
76import Ember from 'ember' ;
87
98import type { FullName } from '@ember/owner' ;
@@ -147,16 +146,6 @@ export default function buildRegistry(resolver: Resolver) {
147146
148147 exposeRegistryMethodsWithoutDeprecations ( container ) ;
149148
150- if ( has ( 'ember-data/setup-container' ) ) {
151- // ember-data is a proper ember-cli addon since 2.3; if no 'import
152- // 'ember-data'' is present somewhere in the tests, there is also no `DS`
153- // available on the globalContext and hence ember-data wouldn't be setup
154- // correctly for the tests; that's why we import and call setupContainer
155- // here; also see https://github.com/emberjs/data/issues/4071 for context
156- let setupContainer = require ( 'ember-data/setup-container' ) [ 'default' ] ;
157- setupContainer ( owner ) ;
158- }
159-
160149 return {
161150 registry,
162151 container,
You can’t perform that action at this time.
0 commit comments