diff --git a/__tests__/components/Navbar.test.tsx b/__tests__/components/Navbar.test.tsx index d0e46ce..8ef8642 100644 --- a/__tests__/components/Navbar.test.tsx +++ b/__tests__/components/Navbar.test.tsx @@ -22,7 +22,10 @@ describe('Navbar', () => { const googleLoginButton = screen.getByTestId('google-login'); expect(googleLoginButton).toBeInTheDocument(); expect(googleLoginButton).toHaveTextContent('Sign In'); - expect(googleLoginButton).toHaveAttribute('href', 'https://api-tinysite.onrender.com/v1/auth/google/login'); + expect(googleLoginButton).toHaveAttribute( + 'href', + 'https://staging-tinysite-api.realdevsquad.com/v1/auth/google/login' + ); }); it('should display "Sign In" when not logged in', () => { diff --git a/src/constants/url.ts b/src/constants/url.ts index 2bc6f6d..118b8b5 100644 --- a/src/constants/url.ts +++ b/src/constants/url.ts @@ -1,3 +1,3 @@ -export const TINY_API_URL = 'https://api-tinysite.onrender.com/v1'; +export const TINY_API_URL = 'https://staging-tinysite-api.realdevsquad.com/v1'; export const TINY_API_GOOGLE_LOGIN = `${TINY_API_URL}/auth/google/login`; export const TINY_API_LOGOUT = `${TINY_API_URL}/auth/logout`;