We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388cf05 commit abf0be9Copy full SHA for abf0be9
test/routes/group.test.js
@@ -44,7 +44,7 @@ describe("group API", () => {
44
title: "Group 1",
45
student: "64fdc67feca8a69f01b33614",
46
});
47
-
+ expect(response.headers["content-type"]).toMatch(/json/);
48
expect(response.status).toBe(200);
49
expect(response.body.res).toMatch(/added group/);
50
@@ -78,7 +78,7 @@ describe("group API", () => {
78
const response = await agent
79
.post(`/group/update/${id}`)
80
.send({ title: "Group 1" }, { title: "Group 2" });
81
82
83
expect(response.body.res).toMatch(/updated group/);
84
0 commit comments