Skip to content

Commit

Permalink
test(ui-grid-column-menu): Fix test issue with angular 1.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Teamop authored and mportuga committed Dec 19, 2017
1 parent c9a78e1 commit 88f5525
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/unit/core/directives/ui-grid-column-menu.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,14 +563,12 @@ describe('ui-grid-column-menu uiGridColumnMenuService', function() {

expect(sortChanged).toHaveBeenCalledWith(jasmine.any(Object), []);
});
// TODO: this does not seem to work in angular 1.6.7
if (angular.version.major === 1 && angular.version.minor < 6) {
it('should raise the columnVisibilityChanged event when hide column is clicked', function() {
$($('.ui-grid-menu-item')[3]).click();
$timeout.flush();

expect(columnVisibilityChanged).toHaveBeenCalled();
});
}
it('should raise the columnVisibilityChanged event when hide column is clicked', function() {
$($('.ui-grid-menu-item')[3]).click();

expect(columnVisibilityChanged).toHaveBeenCalled();
});

});
});

0 comments on commit 88f5525

Please sign in to comment.