message: Change Mock Test.
diff: @@ -11,7 +11,7 @@ import chaiHttp = require('chai-http');
  chai.use(chaiHttp);
  chai.should();
  -const app = new Server().app;
  +let app: any = null;
  const BASE_URL = '/api/auth';
  const fixtureLoader = new FixtureLoader();
  const mockery = require('mockery');
  @@ -22,7 +22,11 @@ describe('Auth', () => {
  mockery.enable({
  warnOnUnregistered: false,
  });
  - mockery.registerMock('nodemailer', nodemailerMock);
  +
  + mockery.registerSubstitute('nodemailer', nodemailerMock);
  + mockery.registerSubstitute('nodemailer-markdown', nodemailerMock);
  +
  + app = new Server().app;
  });
  // Before each test we reset the database
  