Skip to content

Commit 8a43794

Browse files
committed
changed to enum
1 parent 6ea2429 commit 8a43794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/routes/assignment.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe("checking assignment functions", () => {
3737
const response = await agent.post("/assignment/add").send({
3838
no: "123",
3939
title: "xyz",
40-
type: "FA",
40+
type: ["FA"],
4141
marks: 100,
4242
});
4343
expect(response.headers["content-type"]).toMatch(/json/);
@@ -49,7 +49,7 @@ describe("checking assignment functions", () => {
4949
id = await agent.post("/assignment/add").send({
5050
no: "123",
5151
title: "xyz",
52-
type: "FA",
52+
type: ["FA"],
5353
marks: 100,
5454
});
5555
id = JSON.parse(id.res.text).id;

0 commit comments

Comments
 (0)