Skip to content

Commit 6ea2429

Browse files
committed
made the suggested changes
1 parent 77a131d commit 6ea2429

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/routes/assignment.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ describe("checking assignment functions", () => {
3636
it("create assignment", async () => {
3737
const response = await agent.post("/assignment/add").send({
3838
no: "123",
39-
agencyName: "abc",
40-
dateofAccreditation: "2023-06-18T14:11:30Z",
41-
dateofExpiry: "2023-05-28T14:10:30Z",
39+
title: "xyz",
40+
type: "FA",
41+
marks: 100,
4242
});
4343
expect(response.headers["content-type"]).toMatch(/json/);
4444
expect(response.status).toBe(200);
@@ -49,7 +49,7 @@ describe("checking assignment functions", () => {
4949
id = await agent.post("/assignment/add").send({
5050
no: "123",
5151
title: "xyz",
52-
type: "abc",
52+
type: "FA",
5353
marks: 100,
5454
});
5555
id = JSON.parse(id.res.text).id;

0 commit comments

Comments
 (0)