diff --git a/src/__tests__/userController.test.js b/src/__tests__/userController.test.js index 290bcfe..1907616 100644 --- a/src/__tests__/userController.test.js +++ b/src/__tests__/userController.test.js @@ -44,6 +44,7 @@ beforeAll(async () => { const protectedUser = await User.create({ name: "Admin Protected", email: "adminprotected@admin.com", + password: "senha", phone: "4002-8933", status: true, isProtected: true, @@ -54,6 +55,7 @@ beforeAll(async () => { const deletableUser = await User.create({ name: "Jane Doe", email: "janedoe@admin.com", + password: "senha", phone: "4002-8933", status: true, isProtected: false, // Não é protegido @@ -78,6 +80,7 @@ describe("User Controller Tests", () => { const res = await request(app).post("/signup").send({ name: "Joane Doe", email: "joanedoe@admin.com", + password: "senha", phone: "4202-8933", status: true, });