There was an error while loading. Please reload this page.
1 parent 807dc71 commit 773a898Copy full SHA for 773a898
src/todo/tests/controllers/todo.js
@@ -20,7 +20,7 @@ describe('Todo Controller', () => {
20
const task = { _id: '5d89973cf47adf55979b38c0', title: 'test', content: 'test', __v: 0 };
21
const expectedResult = { status: 201, tasks: [{}], message: '' };
22
let res, req;
23
- before(() => mongoDB.connect());
+
24
beforeEach(function() {
25
res = {
26
...expectedResult
@@ -50,8 +50,4 @@ describe('Todo Controller', () => {
50
done();
51
});
52
53
-
54
- afterEach(() => {
55
- mongoDB.disconnect();
56
- });
57
0 commit comments