Skip to content

Commit

Permalink
feat(store): move mock selectors token to testing module
Browse files Browse the repository at this point in the history
  • Loading branch information
ijz953 committed May 8, 2019
1 parent e009b2f commit ed7cc49
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion modules/store/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export {
META_REDUCERS,
FEATURE_REDUCERS,
USER_PROVIDED_META_REDUCERS,
MOCK_SELECTORS,
} from './tokens';
export {
StoreModule,
Expand Down
3 changes: 0 additions & 3 deletions modules/store/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ export const _INITIAL_STATE = new InjectionToken(
'@ngrx/store Internal Initial State'
);
export const INITIAL_STATE = new InjectionToken('@ngrx/store Initial State');
export const MOCK_SELECTORS = new InjectionToken(
'@ngrx/store Initial Selector Values'
);
export const REDUCER_FACTORY = new InjectionToken(
'@ngrx/store Reducer Factory'
);
Expand Down
2 changes: 1 addition & 1 deletion modules/store/testing/src/mock_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Action,
ActionsSubject,
INITIAL_STATE,
MOCK_SELECTORS,
ReducerManager,
Store,
createSelector,
Expand All @@ -13,6 +12,7 @@ import {
} from '@ngrx/store';
import { MockState } from './mock_state';
import { MockSelector } from './mock_selector';
import { MOCK_SELECTORS } from './tokens';

@Injectable()
export class MockStore<T> extends Store<T> {
Expand Down
2 changes: 1 addition & 1 deletion modules/store/testing/src/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { MockState } from './mock_state';
import {
ActionsSubject,
INITIAL_STATE,
MOCK_SELECTORS,
ReducerManager,
StateObservable,
Store,
} from '@ngrx/store';
import { MockStore } from './mock_store';
import { MockReducerManager } from './mock_reducer_manager';
import { MockSelector } from './mock_selector';
import { MOCK_SELECTORS } from './tokens';

export interface MockStoreConfig<T> {
initialState?: T;
Expand Down
3 changes: 3 additions & 0 deletions modules/store/testing/src/tokens.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { InjectionToken } from '@angular/core';

export const MOCK_SELECTORS = new InjectionToken('@ngrx/store Mock Selectors');

0 comments on commit ed7cc49

Please sign in to comment.