Skip to content

Commit

Permalink
fix: change backend API URL
Browse files Browse the repository at this point in the history
  • Loading branch information
sahsisunny committed Nov 7, 2023
1 parent a476986 commit 48cff5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion __tests__/components/Navbar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/constants/url.ts
Original file line number Diff line number Diff line change
@@ -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`;

0 comments on commit 48cff5a

Please sign in to comment.