Skip to content

Commit 4f52210

Browse files
authored
Merge pull request #5793 from mportuga/issues/build
test(Grid.spec.js): Adding missing parameters to GridColumn initialization.
2 parents 25ac15b + ff5d288 commit 4f52210

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/unit/core/factories/Grid.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -836,8 +836,8 @@ describe('Grid factory', function () {
836836
});
837837

838838
it( 'if two column has sort 1 and 2 on the ui which is 0 and 1 in the sort object and the sort change for the first do not change the priority', function() {
839-
var priorColumn1 = new GridColumn({ name: 'a', sort: { direction: uiGridConstants.ASC, priority: 0 } });
840-
var priorColumn2 = new GridColumn({ name: 'b', sort: { direction: uiGridConstants.ASC, priority: 1 } });
839+
var priorColumn1 = new GridColumn({ name: 'a', sort: { direction: uiGridConstants.ASC, priority: 0 } }, 0, grid);
840+
var priorColumn2 = new GridColumn({ name: 'b', sort: { direction: uiGridConstants.ASC, priority: 1 } }, 1, grid);
841841
grid.columns.push( priorColumn1 );
842842
grid.columns.push( priorColumn2 );
843843

@@ -847,9 +847,9 @@ describe('Grid factory', function () {
847847
});
848848

849849
it( 'if three column has sort 1,2 and 3 on the ui which is 0,1 and 2 in the sort object and the sort removed for the second decrease priority for the third but do not change for the first', function() {
850-
var priorColumn1 = new GridColumn({ name: 'a', sort: { direction: uiGridConstants.ASC, priority: 0 } });
851-
var priorColumn2 = new GridColumn({ name: 'b', sort: { direction: uiGridConstants.DESC, priority: 1 } });
852-
var priorColumn3 = new GridColumn({ name: 'c', sort: { direction: uiGridConstants.ASC, priority: 2 } });
850+
var priorColumn1 = new GridColumn({ name: 'a', sort: { direction: uiGridConstants.ASC, priority: 0 } }, 0, grid);
851+
var priorColumn2 = new GridColumn({ name: 'b', sort: { direction: uiGridConstants.DESC, priority: 1 } }, 1, grid);
852+
var priorColumn3 = new GridColumn({ name: 'c', sort: { direction: uiGridConstants.ASC, priority: 2 } }, 2, grid);
853853
grid.columns.push( priorColumn1 );
854854
grid.columns.push( priorColumn2 );
855855
grid.columns.push( priorColumn3 );

0 commit comments

Comments
 (0)