From 48cff5a03bd7c50664a6bff501c36bcc1c6bd81f Mon Sep 17 00:00:00 2001 From: Sunny Sahsi Date: Tue, 7 Nov 2023 20:07:32 +0530 Subject: [PATCH] fix: change backend API URL --- __tests__/components/Navbar.test.tsx | 5 ++++- src/constants/url.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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`;