Skip to content

Commit cc3139c

Browse files
committed
improve test readability
1 parent b038e22 commit cc3139c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/features/saveState/test/saveState.spec.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,6 @@ describe('ui.grid.saveState uiGridSaveStateService', function () {
365365
colFilterChangeCount++;
366366
});
367367

368-
grid.api.core.on.sortChanged( $scope, function() {
369-
colSortChangeCount++;
370-
});
371-
372368
grid.api.core.on.sortChanged( $scope, onSortChangedHook );
373369

374370
uiGridSaveStateService.restoreColumns( grid, [
@@ -410,7 +406,8 @@ describe('ui.grid.saveState uiGridSaveStateService', function () {
410406

411407
expect( colVisChangeCount ).toEqual( 4, '4 columns changed visibility');
412408
expect( colFilterChangeCount ).toEqual( 1, '1 columns changed filter');
413-
expect( colSortChangeCount ).toEqual( 1, '1 columns changed sort');
409+
410+
expect( onSortChangedHook.calls.length ).toEqual( 1 );
414411

415412
expect( onSortChangedHook ).toHaveBeenCalledWith(
416413
grid,

0 commit comments

Comments
 (0)