Skip to content

Commit

Permalink
abort all written tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneleon1 committed Jun 25, 2024
1 parent 3060c54 commit 618c83d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 51 deletions.
43 changes: 15 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"dependencies": {
"@reduxjs/toolkit": "^2.2.5",
"@testing-library/user-event": "^14.5.2",
"@types/react-redux": "^7.1.33",
"@types/react-router-dom": "^5.3.3",
"axios": "^1.7.2",
Expand Down
10 changes: 0 additions & 10 deletions src/__test__/HSButton.test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
import HSButton from '@/components/form/HSButton';
import { render, screen } from '@testing-library/react';
import { describe, it } from 'vitest';

describe('HSButton component Tests', () => {
it('it should render the HSButton', () => {
render(<HSButton title="tittle" />);
screen.debug();
});
});
9 changes: 0 additions & 9 deletions src/__test__/signIn.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
import { describe, it } from 'vitest';
import SignIn from '@/pages/SignIn';
import { render, screen } from '@testing-library/react';
describe('Sign Component Tests', () => {
it('it should render Sign In title on Sign Pagde', () => {
render(<SignIn />);
screen.debug();
});
});
6 changes: 3 additions & 3 deletions src/features/Auth/SignInSlice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ interface LoginResponse {
message: string;
}

interface LoginError {
message: string;
}
// interface LoginError {
// message: string;
// }

const initialState: SignInState = {
token: null,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function SignIn() {
<FcGoogle />
</Link>
<Link
to="https://dynamites-ecomm-be.onrender.com/login"
to="https://dynamites-ecomm-be.onrender.com/login/auth/facebook"
className="bg-blue-600 w-12 h-12 rounded-full flex items-center justify-center cursor-pointer transition-transform transform active:scale-95 hover:scale-105"
>
<FaFacebook color="white" size={16} />
Expand Down

0 comments on commit 618c83d

Please sign in to comment.