Closed Shiv2205 closed 8 months ago
FAIL tests/unit/accounts.test.js (5.296 s) ● Express accounts › /users › should get user details
expect(received).toEqual(expected) // deep equality - Expected - 3 + Received + 0 Object { - "data": Object { - "name": "John Doe", - }, "status": 200, } 85 | const response = await request(app).post("/users").send(req.body); 86 | expect(response.status).toEqual(200); > 87 | expect(response.body).toEqual({ | ^ 88 | status: 200, 89 | data: { name: "John Doe" }, 90 | }); at Object.toEqual (tests/unit/accounts.test.js:87:29)
commit 8013c7b fixes the bug
FAIL tests/unit/accounts.test.js (5.296 s) ● Express accounts › /users › should get user details