@@ -2,7 +2,13 @@ import 'rxjs/add/operator/take';
22import { ReflectiveInjector } from '@angular/core' ;
33import { hot } from 'jasmine-marbles' ;
44import { createInjector } from './helpers/injector' ;
5- import { ActionsSubject , ReducerManager , Store , StoreModule } from '../' ;
5+ import {
6+ ActionsSubject ,
7+ ReducerManager ,
8+ Store ,
9+ StoreModule ,
10+ select ,
11+ } from '../' ;
612import {
713 counterReducer ,
814 INCREMENT ,
@@ -83,7 +89,7 @@ describe('ngRx Store', () => {
8389
8490 counterSteps . subscribe ( action => store . dispatch ( action ) ) ;
8591
86- const counterStateWithString = store . select ( 'counter1' ) ;
92+ const counterStateWithString = store . pipe ( select ( 'counter1' ) ) ;
8793
8894 const stateSequence = 'i-v--w--x--y--z' ;
8995 const counter1Values = { i : 0 , v : 1 , w : 2 , x : 1 , y : 0 , z : 1 } ;
@@ -98,7 +104,7 @@ describe('ngRx Store', () => {
98104
99105 counterSteps . subscribe ( action => store . dispatch ( action ) ) ;
100106
101- const counterStateWithFunc = store . select ( s => s . counter1 ) ;
107+ const counterStateWithFunc = store . pipe ( select ( s => s . counter1 ) ) ;
102108
103109 const stateSequence = 'i-v--w--x--y--z' ;
104110 const counter1Values = { i : 0 , v : 1 , w : 2 , x : 1 , y : 0 , z : 1 } ;
@@ -109,7 +115,7 @@ describe('ngRx Store', () => {
109115 } ) ;
110116
111117 it ( 'should correctly lift itself' , ( ) => {
112- const result = store . select ( 'counter1' ) ;
118+ const result = store . pipe ( select ( 'counter1' ) ) ;
113119
114120 expect ( result instanceof Store ) . toBe ( true ) ;
115121 } ) ;
@@ -119,7 +125,7 @@ describe('ngRx Store', () => {
119125
120126 counterSteps . subscribe ( action => store . dispatch ( action ) ) ;
121127
122- const counterState = store . select ( 'counter1' ) ;
128+ const counterState = store . pipe ( select ( 'counter1' ) ) ;
123129
124130 const stateSequence = 'i-v--w--x--y--z' ;
125131 const counter1Values = { i : 0 , v : 1 , w : 2 , x : 1 , y : 0 , z : 1 } ;
@@ -132,7 +138,7 @@ describe('ngRx Store', () => {
132138
133139 counterSteps . subscribe ( action => dispatcher . next ( action ) ) ;
134140
135- const counterState = store . select ( 'counter1' ) ;
141+ const counterState = store . pipe ( select ( 'counter1' ) ) ;
136142
137143 const stateSequence = 'i-v--w--x--y--z' ;
138144 const counter1Values = { i : 0 , v : 1 , w : 2 , x : 1 , y : 0 , z : 1 } ;
@@ -145,8 +151,8 @@ describe('ngRx Store', () => {
145151
146152 counterSteps . subscribe ( action => store . dispatch ( action ) ) ;
147153
148- const counter1State = store . select ( 'counter1' ) ;
149- const counter2State = store . select ( 'counter2' ) ;
154+ const counter1State = store . pipe ( select ( 'counter1' ) ) ;
155+ const counter2State = store . pipe ( select ( 'counter2' ) ) ;
150156
151157 const stateSequence = 'i-v--w--x--y--z' ;
152158 const counter2Values = { i : 1 , v : 2 , w : 3 , x : 2 , y : 0 , z : 1 } ;
0 commit comments