@@ -2,7 +2,13 @@ import 'rxjs/add/operator/take';
2
2
import { ReflectiveInjector } from '@angular/core' ;
3
3
import { hot } from 'jasmine-marbles' ;
4
4
import { 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 '../' ;
6
12
import {
7
13
counterReducer ,
8
14
INCREMENT ,
@@ -83,7 +89,7 @@ describe('ngRx Store', () => {
83
89
84
90
counterSteps . subscribe ( action => store . dispatch ( action ) ) ;
85
91
86
- const counterStateWithString = store . select ( 'counter1' ) ;
92
+ const counterStateWithString = store . pipe ( select ( 'counter1' ) ) ;
87
93
88
94
const stateSequence = 'i-v--w--x--y--z' ;
89
95
const counter1Values = { i : 0 , v : 1 , w : 2 , x : 1 , y : 0 , z : 1 } ;
@@ -98,7 +104,7 @@ describe('ngRx Store', () => {
98
104
99
105
counterSteps . subscribe ( action => store . dispatch ( action ) ) ;
100
106
101
- const counterStateWithFunc = store . select ( s => s . counter1 ) ;
107
+ const counterStateWithFunc = store . pipe ( select ( s => s . counter1 ) ) ;
102
108
103
109
const stateSequence = 'i-v--w--x--y--z' ;
104
110
const counter1Values = { i : 0 , v : 1 , w : 2 , x : 1 , y : 0 , z : 1 } ;
@@ -109,7 +115,7 @@ describe('ngRx Store', () => {
109
115
} ) ;
110
116
111
117
it ( 'should correctly lift itself' , ( ) => {
112
- const result = store . select ( 'counter1' ) ;
118
+ const result = store . pipe ( select ( 'counter1' ) ) ;
113
119
114
120
expect ( result instanceof Store ) . toBe ( true ) ;
115
121
} ) ;
@@ -119,7 +125,7 @@ describe('ngRx Store', () => {
119
125
120
126
counterSteps . subscribe ( action => store . dispatch ( action ) ) ;
121
127
122
- const counterState = store . select ( 'counter1' ) ;
128
+ const counterState = store . pipe ( select ( 'counter1' ) ) ;
123
129
124
130
const stateSequence = 'i-v--w--x--y--z' ;
125
131
const counter1Values = { i : 0 , v : 1 , w : 2 , x : 1 , y : 0 , z : 1 } ;
@@ -132,7 +138,7 @@ describe('ngRx Store', () => {
132
138
133
139
counterSteps . subscribe ( action => dispatcher . next ( action ) ) ;
134
140
135
- const counterState = store . select ( 'counter1' ) ;
141
+ const counterState = store . pipe ( select ( 'counter1' ) ) ;
136
142
137
143
const stateSequence = 'i-v--w--x--y--z' ;
138
144
const counter1Values = { i : 0 , v : 1 , w : 2 , x : 1 , y : 0 , z : 1 } ;
@@ -145,8 +151,8 @@ describe('ngRx Store', () => {
145
151
146
152
counterSteps . subscribe ( action => store . dispatch ( action ) ) ;
147
153
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' ) ) ;
150
156
151
157
const stateSequence = 'i-v--w--x--y--z' ;
152
158
const counter2Values = { i : 1 , v : 2 , w : 3 , x : 2 , y : 0 , z : 1 } ;
0 commit comments