OK
Size: a a a
OK
AB
AE
AE
AE
AE
OK
AB
AE
AB
OK
NK
AB
R
// comments.test.js
// /GET doesn't care about user authentication
it("should return 401, cuz user is not authenticated", async (done) => {
// .post("/comments/").send({ text: "something" })
// .patch("/comments/12345")
const res = await session(app).delete("/comments/12345");
expect(res.status).toBe(401);
expect(res.body.message).toBe(serverMessages.USER_NOT_AUTHENTICATED);
done();
});
DP
M
// comments.test.js
// /GET doesn't care about user authentication
it("should return 401, cuz user is not authenticated", async (done) => {
// .post("/comments/").send({ text: "something" })
// .patch("/comments/12345")
const res = await session(app).delete("/comments/12345");
expect(res.status).toBe(401);
expect(res.body.message).toBe(serverMessages.USER_NOT_AUTHENTICATED);
done();
});
K