Skip to content

Commit 5b1c6d6

Browse files
committed
chore(test): update scrollToSectionView tests for clarity in expectations
1 parent f6fa649 commit 5b1c6d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils/scrollToSectionView.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ describe('scrollToSectionView', () => {
4141

4242
it("should' not scroll if container is null", () => {
4343
scrollToSectionView(null, target);
44-
expect(container.scrollTo).not.toHaveBeenCalled();
44+
expect(container.scrollTo).toHaveBeenCalledTimes(0);
4545
});
4646

4747
it("should' not scroll if target is null", () => {
4848
scrollToSectionView(container, null);
49-
expect(container.scrollTo).not.toHaveBeenCalled();
49+
expect(container.scrollTo).toHaveBeenCalledTimes(0);
5050
});
5151

5252
it('should calculate scrollTop correctly and call scrollTo', () => {

0 commit comments

Comments
 (0)