diff --git a/addon/-private/index.js b/addon/-private/index.js index ba709785c38..c6ecf77b842 100644 --- a/addon/-private/index.js +++ b/addon/-private/index.js @@ -28,10 +28,12 @@ export { default as coerceId } from './system/coerce-id'; export { default as parseResponseHeaders } from './utils/parse-response-headers'; // should be private ? -export { default as RootState } from './system/model/states'; export { default as global } from './global'; export { default as isEnabled } from './features'; +// `ember-data-model-fragments` relies on `RootState`, `InternalModel` and `ContainerInstanceCache` +export { default as RootState } from './system/model/states'; export { default as InternalModel } from './system/model/internal-model'; +export { default as ContainerInstanceCache } from './system/store/container-instance-cache'; export { PromiseArray, diff --git a/tests/unit/private-test.js b/tests/unit/private-test.js new file mode 100644 index 00000000000..bd42b3a33b2 --- /dev/null +++ b/tests/unit/private-test.js @@ -0,0 +1,16 @@ +import { module, test } from 'qunit'; +import { ContainerInstanceCache, InternalModel, RootState } from 'ember-data/-private'; + +module('-private'); + +test('`ContainerInstanceCache` is accessible via private import', function(assert) { + assert.ok(!!ContainerInstanceCache); +}); + +test('`InternalModel` is accessible via private import', function(assert) { + assert.ok(!!InternalModel); +}); + +test('`RootState` is accessible via private import', function(assert) { + assert.ok(!!RootState); +});