Skip to content

Commit

Permalink
[BUGFIX BETA] Added system/store/container-instance-cache to the -p…
Browse files Browse the repository at this point in the history
…rivate export file
  • Loading branch information
Wesley Workman committed May 30, 2017
1 parent 69cdc9e commit 96a9208
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon/-private/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions tests/unit/private-test.js
Original file line number Diff line number Diff line change
@@ -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);
});

0 comments on commit 96a9208

Please sign in to comment.