Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wesolowski committed Jun 8, 2024
1 parent fd833f6 commit 7029046
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/integration/pages/api/auth/login.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { POST } from '../../../../../src/pages/api/auth/login';

describe('POST API Route', () => {
it('returns error when email is invalid', async () => {
const mockContext = {
request: {
formData: vi.fn().mockResolvedValue({
get: vi.fn(() => 'a@')
})
}
};
// const mockContext = {
// request: {
// formData: vi.fn().mockResolvedValue({
// get: vi.fn(() => 'a@')
// })
// }
// };
expect(true).toBe(true);
// const response = await POST(mockContext);
//
Expand Down

0 comments on commit 7029046

Please sign in to comment.