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 77a131d commit 6ea2429Copy full SHA for 6ea2429
test/routes/assignment.test.js
@@ -36,9 +36,9 @@ describe("checking assignment functions", () => {
36
it("create assignment", async () => {
37
const response = await agent.post("/assignment/add").send({
38
no: "123",
39
- agencyName: "abc",
40
- dateofAccreditation: "2023-06-18T14:11:30Z",
41
- dateofExpiry: "2023-05-28T14:10:30Z",
+ title: "xyz",
+ type: "FA",
+ marks: 100,
42
});
43
expect(response.headers["content-type"]).toMatch(/json/);
44
expect(response.status).toBe(200);
@@ -49,7 +49,7 @@ describe("checking assignment functions", () => {
49
id = await agent.post("/assignment/add").send({
50
51
title: "xyz",
52
- type: "abc",
53
marks: 100,
54
55
id = JSON.parse(id.res.text).id;
0 commit comments