Skip to content

Commit 91344b4

Browse files
author
Christiaan Maks
authored
Update user.test.js
1 parent 4079211 commit 91344b4

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

server/tests/user.test.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1-
import mongoose from 'mongoose';
21
import request from 'supertest-as-promised';
32
import httpStatus from 'http-status';
43
import chai, { expect } from 'chai';
54
import app from '../../index';
65

76
chai.config.includeStack = true;
87

9-
/**
10-
* root level hooks
11-
*/
12-
after((done) => {
13-
// required because https://github.com/Automattic/mongoose/issues/1251#issuecomment-65793092
14-
mongoose.models = {};
15-
mongoose.modelSchemas = {};
16-
mongoose.connection.close();
17-
done();
18-
});
19-
208
describe('## User APIs', () => {
219
let user = {
2210
username: 'KK123',

0 commit comments

Comments
 (0)