Skip to content

Commit

Permalink
add backend api url for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sahsisunny committed Nov 4, 2023
1 parent 50bd912 commit 87c7172
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 @@ -24,7 +24,10 @@ describe('Navbar', () => {
const googleLoginButton = screen.getByTestId('google-login');
expect(googleLoginButton).toBeInTheDocument();
expect(googleLoginButton).toHaveTextContent('Sign In');
expect(googleLoginButton).toHaveAttribute('href', 'http://localhost:8000/v1/auth/google/login');
expect(googleLoginButton).toHaveAttribute(
'href',
'https://tiny-site-backend.onrender.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 = 'http://localhost:8000/v1';
export const TINY_API_URL = 'https://tiny-site-backend.onrender.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 87c7172

Please sign in to comment.