-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[CHE 39] Create Registration Page And Routing"
- Loading branch information
1 parent
978f44d
commit 13ed696
Showing
11 changed files
with
9 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ afterAll(async () => { | |
|
||
describe("User Routes", () => { | ||
describe("POST /api/users/register", () => { | ||
xit("should register a user", async () => { | ||
it("should register a user", async () => { | ||
const mockNewUserData = { | ||
firstName: "John", | ||
lastName: "Doh", | ||
|
@@ -40,7 +40,7 @@ describe("User Routes", () => { | |
}); | ||
|
||
describe("POST /api/users/login", () => { | ||
xit("should login a user", async () => { | ||
it("should login a user", async () => { | ||
const mockUserData = { | ||
email: "[email protected]", | ||
password: "testpassword", | ||
|
@@ -56,7 +56,7 @@ describe("User Routes", () => { | |
}); | ||
|
||
describe("GET /api/users/:id", () => { | ||
xit("should get a specific user", async () => { | ||
it("should get a specific user", async () => { | ||
// Create a user first | ||
const newUser = { | ||
firstName: "Test", | ||
|
@@ -82,7 +82,7 @@ describe("User Routes", () => { | |
}); | ||
|
||
describe("DELETE /api/users/:email", () => { | ||
xit("should delete a specific user by email", async () => { | ||
it("should delete a specific user by email", async () => { | ||
const email = "[email protected]"; | ||
|
||
const res = await request(app).delete(`/api/users/${email}`); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.