@@ -168,16 +168,14 @@ describe('IgxHierarchicalGridState - input properties #hGrid', () => {
168
168
gridState = state . getState ( false , [ 'moving' , 'rowIslands' ] ) as IGridState ;
169
169
HelperFunctions . verifyMoving ( grid . moving , gridState ) ;
170
170
} ) ;
171
-
172
171
173
172
it ( 'setState should correctly restore grid moving state from string' , fakeAsync ( ( ) => {
174
173
const state = fix . componentInstance . state ;
175
174
176
175
const initialState = HelperFunctions . buildStateString ( grid , 'moving' , 'true' , 'true' ) ;
177
- const movingState = HelperFunctions . buildStateString ( grid , 'moving' , 'false' , 'true ' ) ;
176
+ const movingState = HelperFunctions . buildStateString ( grid , 'moving' , 'false' , 'false ' ) ;
178
177
179
178
const movingStateObject = JSON . parse ( movingState ) as IGridState ;
180
- movingStateObject . columns = fix . componentInstance . childColumns ;
181
179
182
180
let gridState = state . getState ( true , [ 'moving' , 'rowIslands' ] ) ;
183
181
expect ( gridState ) . toBe ( initialState ) ;
@@ -189,7 +187,7 @@ describe('IgxHierarchicalGridState - input properties #hGrid', () => {
189
187
HelperFunctions . verifyMoving ( grid . moving , gridState ) ;
190
188
const gridsCollection = HelperFunctions . getChildGridsCollection ( grid , gridState ) ;
191
189
gridsCollection . forEach ( childGrid => {
192
- expect ( childGrid . grid . moving ) . toEqual ( childGrid . grid . moving ) ;
190
+ HelperFunctions . verifyMoving ( childGrid . grid . moving , childGrid . state ) ;
193
191
} ) ;
194
192
gridState = state . getState ( true , [ 'moving' , 'rowIslands' ] ) ;
195
193
expect ( gridState ) . toBe ( movingState ) ;
0 commit comments