Skip to content

Commit 79f3ad9

Browse files
committed
refactored remove() to pass only object id in tests
1 parent abf0be9 commit 79f3ad9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/routes/group.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ beforeAll((done) => {
2020
function cleanUp(callback) {
2121
groupModel
2222
.remove({
23-
title: "Group 1",
24-
student: "64fdc67feca8a69f01b33614",
23+
id: "6500594e2b7b532006c073dd",
2524
})
2625
.then(() => {
2726
connector.disconnect((DBerr) => {
@@ -61,8 +60,7 @@ describe("group API", () => {
6160

6261
afterEach(async () => {
6362
await groupModel.remove({
64-
title: "Group 1",
65-
student: "64fdc67feca8a69f01b33614",
63+
id: "6500594e2b7b532006c073dd",
6664
});
6765
});
6866

0 commit comments

Comments
 (0)