There was an error while loading. Please reload this page.
1 parent 4079211 commit 91344b4Copy full SHA for 91344b4
server/tests/user.test.js
@@ -1,22 +1,10 @@
1
-import mongoose from 'mongoose';
2
import request from 'supertest-as-promised';
3
import httpStatus from 'http-status';
4
import chai, { expect } from 'chai';
5
import app from '../../index';
6
7
chai.config.includeStack = true;
8
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
-
20
describe('## User APIs', () => {
21
let user = {
22
username: 'KK123',
0 commit comments