@@ -77,14 +77,15 @@ describe('Row Pinning #grid', () => {
7777 // pin 2nd
7878 grid . pinRow ( fix . componentInstance . data [ 1 ] ) ;
7979 fix . detectChanges ( ) ;
80-
80+
8181 expect ( grid . pinnedRecords . length ) . toBe ( 1 ) ;
8282 let pinRowContainer = fix . debugElement . queryAll ( By . css ( FIXED_ROW_CONTAINER ) ) ;
8383 expect ( pinRowContainer . length ) . toBe ( 1 ) ;
8484 expect ( pinRowContainer [ 0 ] . children . length ) . toBe ( 1 ) ;
8585 expect ( pinRowContainer [ 0 ] . children [ 0 ] . context . rowID ) . toBe ( fix . componentInstance . data [ 1 ] ) ;
8686 expect ( pinRowContainer [ 0 ] . children [ 0 ] . context . index ) . toBe ( fix . componentInstance . data . length - 1 ) ;
87- expect ( pinRowContainer [ 0 ] . children [ 0 ] . nativeElement ) . toBe ( grid . getRowByIndex ( fix . componentInstance . data . length - 1 ) . nativeElement ) ;
87+ expect ( pinRowContainer [ 0 ] . children [ 0 ] . nativeElement )
88+ . toBe ( grid . getRowByIndex ( fix . componentInstance . data . length - 1 ) . nativeElement ) ;
8889
8990 expect ( grid . getRowByIndex ( 0 ) . rowID ) . toBe ( fix . componentInstance . data [ 0 ] ) ;
9091 expect ( grid . getRowByIndex ( 1 ) . rowID ) . toBe ( fix . componentInstance . data [ 2 ] ) ;
@@ -136,7 +137,7 @@ describe('Row Pinning #grid', () => {
136137 // pin 2nd row
137138 grid . pinRow ( fix . componentInstance . data [ 1 ] ) ;
138139 fix . detectChanges ( ) ;
139-
140+
140141 expect ( grid . pinnedRecords . length ) . toBe ( 1 ) ;
141142 let pinRowContainer = fix . debugElement . queryAll ( By . css ( FIXED_ROW_CONTAINER ) ) ;
142143 expect ( pinRowContainer . length ) . toBe ( 1 ) ;
@@ -154,7 +155,7 @@ describe('Row Pinning #grid', () => {
154155
155156 expect ( grid . pinnedRecords . length ) . toBe ( 0 ) ;
156157 pinRowContainer = fix . debugElement . queryAll ( By . css ( FIXED_ROW_CONTAINER ) ) ;
157- expect ( pinRowContainer . length ) . toBe ( 0 ) ;
158+ expect ( pinRowContainer . length ) . toBe ( 0 ) ;
158159
159160 expect ( grid . getRowByIndex ( 0 ) . rowID ) . toBe ( fix . componentInstance . data [ 0 ] ) ;
160161 expect ( grid . getRowByIndex ( 1 ) . rowID ) . toBe ( fix . componentInstance . data [ 1 ] ) ;
@@ -182,7 +183,7 @@ describe('Row Pinning #grid', () => {
182183
183184 expect ( grid . pinnedRecords . length ) . toBe ( 0 ) ;
184185 pinRowContainer = fix . debugElement . queryAll ( By . css ( FIXED_ROW_CONTAINER ) ) ;
185- expect ( pinRowContainer . length ) . toBe ( 0 ) ;
186+ expect ( pinRowContainer . length ) . toBe ( 0 ) ;
186187
187188 expect ( grid . getRowByIndex ( 0 ) . rowID ) . toBe ( fix . componentInstance . data [ 0 ] ) ;
188189 expect ( grid . getRowByIndex ( 1 ) . rowID ) . toBe ( fix . componentInstance . data [ 1 ] ) ;
@@ -193,25 +194,25 @@ describe('Row Pinning #grid', () => {
193194 let row = grid . getRowByIndex ( 1 ) ;
194195 row . pinned = true ;
195196 fix . detectChanges ( ) ;
196-
197+
197198 expect ( grid . pinnedRecords . length ) . toBe ( 1 ) ;
198199 let pinRowContainer = fix . debugElement . queryAll ( By . css ( FIXED_ROW_CONTAINER ) ) ;
199200 expect ( pinRowContainer . length ) . toBe ( 1 ) ;
200201 expect ( pinRowContainer [ 0 ] . children . length ) . toBe ( 1 ) ;
201202 expect ( pinRowContainer [ 0 ] . children [ 0 ] . context . rowID ) . toBe ( fix . componentInstance . data [ 1 ] ) ;
202-
203+
203204 expect ( grid . getRowByIndex ( 0 ) . rowID ) . toBe ( fix . componentInstance . data [ 1 ] ) ;
204205 expect ( grid . getRowByIndex ( 1 ) . rowID ) . toBe ( fix . componentInstance . data [ 0 ] ) ;
205-
206+
206207 // unpin
207208 row = grid . getRowByIndex ( 0 ) ;
208209 row . pinned = false ;
209210 fix . detectChanges ( ) ;
210-
211+
211212 expect ( grid . pinnedRecords . length ) . toBe ( 0 ) ;
212213 pinRowContainer = fix . debugElement . queryAll ( By . css ( FIXED_ROW_CONTAINER ) ) ;
213- expect ( pinRowContainer . length ) . toBe ( 0 ) ;
214-
214+ expect ( pinRowContainer . length ) . toBe ( 0 ) ;
215+
215216 expect ( grid . getRowByIndex ( 0 ) . rowID ) . toBe ( fix . componentInstance . data [ 0 ] ) ;
216217 expect ( grid . getRowByIndex ( 1 ) . rowID ) . toBe ( fix . componentInstance . data [ 1 ] ) ;
217218 } ) ;
0 commit comments