From 4d0c74a66b8e17647499f7181fef653ab25519b1 Mon Sep 17 00:00:00 2001 From: Lilith Date: Sat, 8 Jun 2024 21:56:28 -0700 Subject: [PATCH] corrected route for sign in link correction for sign up page unit test --- tests/unit/auth/sign-up/page.test.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/auth/sign-up/page.test.tsx b/tests/unit/auth/sign-up/page.test.tsx index 8725be0e..2e7063b1 100644 --- a/tests/unit/auth/sign-up/page.test.tsx +++ b/tests/unit/auth/sign-up/page.test.tsx @@ -9,6 +9,7 @@ describe('Sign up page tests', () => { // Arrange beforeEach(() => { jest.clearAllMocks(); + // eslint-disable-next-line testing-library/no-render-in-lifecycle render() }) it('render contains title, submit button, and sign in link', () => { @@ -28,7 +29,7 @@ describe('Sign up page tests', () => { } }) - it('sign in link direct to localhost /auth/sign-up route', () => { + it('sign in link direct to localhost /auth/sign-in route', () => { // Arrange const signinLink = screen.getByRole('link', { name: /sign in/i }) @@ -36,6 +37,6 @@ describe('Sign up page tests', () => { fireEvent.click(signinLink) // Assert - expect(signinLink).toHaveProperty('href', 'http://localhost/auth/sign-up') + expect(signinLink).toHaveProperty('href', 'http://localhost/auth/sign-in') }) }) \ No newline at end of file