Skip to content

Commit f595097

Browse files
committed
chore: Add comment to mockImplementationOnce
1 parent d4829d8 commit f595097

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/(proper_react)/(redesign)/(public)/LandingViewRedesign/LandingViewRedesign.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ describe("Navigation and authentication", () => {
151151
// test:
152152
jest
153153
.spyOn(console, "error")
154+
// we expect the error to get logged twice (once for each click below)
154155
.mockImplementationOnce(() => undefined)
155156
.mockImplementationOnce(() => undefined);
156157
await user.click(navbarLinks[0]);

0 commit comments

Comments
 (0)