Skip to content

Commit

Permalink
refactor(scrollpoint): put assertion on two lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nivekcode committed Sep 30, 2019
1 parent 28ca66c commit 026e75a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/ng-sortgrid/src/lib/ngsg-item.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ describe('NgsgItemDirective', () => {
spyOn(scrollHelperService, 'scrollIfNecessary');

sut.drag(event);
expect(scrollHelperService.scrollIfNecessary).toHaveBeenCalledWith(event.target, {top: scrollPointTop}, scrollSpeed);
expect(scrollHelperService.scrollIfNecessary)
.toHaveBeenCalledWith(event.target, {top: scrollPointTop}, scrollSpeed);
});
});

0 comments on commit 026e75a

Please sign in to comment.