Skip to content

Commit

Permalink
chore: fixes from review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Oct 5, 2019
1 parent 603e09e commit a1f987d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/store/testing/src/mock_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class MockStore<T> extends Store<T> {
>();

public scannedActions$: Observable<Action>;
private lastState: T | undefined;
private lastState: T;

constructor(
private state$: MockState<T>,
Expand All @@ -47,8 +47,7 @@ export class MockStore<T> extends Store<T> {
) {
super(state$, actionsObserver, reducerManager);
this.resetSelectors();
this.state$.next(this.initialState);
this.lastState = this.initialState;
this.setState(this.initialState);
this.scannedActions$ = actionsObserver.asObservable();
if (mockSelectors) {
mockSelectors.forEach(mockSelector => {
Expand Down

0 comments on commit a1f987d

Please sign in to comment.