Skip to content

Commit 1856493

Browse files
committed
fixed enum values for tutorial testcase
1 parent 764de07 commit 1856493

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/routes/tutorial.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ beforeAll((done) => {
1717
});
1818

1919
function cleanUp(callback) {
20-
tutorialModel.remove({ no: "123git" }).then(() => {
20+
tutorialModel.remove({ no: "123" }).then(() => {
2121
connector.disconnect((DBerr) => {
2222
if (DBerr) console.log("Database dissconnnect error: ", DBerr);
2323
server.close((serverErr) => {
@@ -38,7 +38,7 @@ describe("checking tutorial functions", () => {
3838
no: "123",
3939
title: "abc",
4040
hours: "3",
41-
cognitiveLevel: "abc",
41+
cognitiveLevel: ["L1"],
4242
});
4343
expect(response.headers["content-type"]).toMatch(/json/);
4444
expect(response.status).toBe(200);
@@ -50,7 +50,7 @@ describe("checking tutorial functions", () => {
5050
no: "123",
5151
title: "abc",
5252
hours: "3",
53-
cognitiveLevel: "abc",
53+
cognitiveLevel: ["L1", "L2"],
5454
});
5555
});
5656

0 commit comments

Comments
 (0)