mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 00:17:48 +01:00
add email to users
This commit is contained in:
@@ -71,7 +71,11 @@ describe("users", () => {
|
||||
const response = await request(callback)
|
||||
.post("/users/signup")
|
||||
.set({ "Content-Type": "application/json" })
|
||||
.send({ username: "NUser1", password: "NUser1" })
|
||||
.send({
|
||||
username: "NUser1",
|
||||
password: "NUser1",
|
||||
email: "nuser1@users.com",
|
||||
})
|
||||
.expect("Content-Type", /json/)
|
||||
.expect(200);
|
||||
|
||||
@@ -88,7 +92,11 @@ describe("users", () => {
|
||||
const response = await request(callback)
|
||||
.post("/users/signup")
|
||||
.set({ "Content-Type": "application/json" })
|
||||
.send({ username: "User1", password: "NUser1" })
|
||||
.send({
|
||||
username: "User1",
|
||||
password: "NUser1",
|
||||
email: "user1@users.com",
|
||||
})
|
||||
.expect(400);
|
||||
|
||||
expect(response.body.error).to.be.equal("User already exists");
|
||||
|
||||
Reference in New Issue
Block a user