Skip to content

Commit

Permalink
fix: Updating the signup.tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiorodriguezgarcia committed Mar 4, 2024
1 parent 35de8f7 commit 353a454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 62 deletions.
61 changes: 0 additions & 61 deletions webapp/src/tests/Login.test.js

This file was deleted.

6 changes: 5 additions & 1 deletion webapp/src/tests/Signup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ describe('Signup Component', () => {

// Check if the form data was sent correctly
await waitFor(() => {
expect(axiosMock).toHaveBeenCalledWith(process.env.API_URL, {});
expect(axiosMock).toHaveBeenCalledWith(process.env.API_URL, {
email: 'test@example.com',
username: 'testuser',
password: 'password'
});
expect(axiosMock).toHaveBeenCalledTimes(1);
});

Expand Down

0 comments on commit 353a454

Please sign in to comment.