@@ -109,8 +109,8 @@ describe('CdkTable', () => {
109
109
expect ( initialRows [ 2 ] . getAttribute ( 'initialIndex' ) ) . toBe ( '2' ) ;
110
110
111
111
// Swap first and second data in data array
112
- let copiedData = component . dataSource . data . slice ( ) ;
113
- let temp = copiedData [ 0 ] ;
112
+ const copiedData = component . dataSource . data . slice ( ) ;
113
+ const temp = copiedData [ 0 ] ;
114
114
copiedData [ 0 ] = copiedData [ 1 ] ;
115
115
copiedData [ 1 ] = temp ;
116
116
@@ -132,11 +132,11 @@ describe('CdkTable', () => {
132
132
// TODO(andrewseguin): Add test for dynamic classes on header/rows
133
133
134
134
it ( 'should match the right table content with dynamic data' , ( ) => {
135
- let initialDataLength = dataSource . data . length ;
135
+ const initialDataLength = dataSource . data . length ;
136
136
expect ( dataSource . data . length ) . toBe ( 3 ) ;
137
- let headerContent = [ 'Column A' , 'Column B' , 'Column C' ] ;
137
+ const headerContent = [ 'Column A' , 'Column B' , 'Column C' ] ;
138
138
139
- let initialTableContent = [ headerContent ] ;
139
+ const initialTableContent = [ headerContent ] ;
140
140
dataSource . data . forEach ( rowData => initialTableContent . push ( [ rowData . a , rowData . b , rowData . c ] ) ) ;
141
141
expect ( tableElement ) . toMatchTableContent ( initialTableContent ) ;
142
142
@@ -146,7 +146,7 @@ describe('CdkTable', () => {
146
146
fixture . detectChanges ( ) ;
147
147
fixture . detectChanges ( ) ;
148
148
149
- let changedTableContent = [ headerContent ] ;
149
+ const changedTableContent = [ headerContent ] ;
150
150
dataSource . data . forEach ( rowData => changedTableContent . push ( [ rowData . a , rowData . b , rowData . c ] ) ) ;
151
151
expect ( tableElement ) . toMatchTableContent ( changedTableContent ) ;
152
152
} ) ;
0 commit comments