message: Replaced promise with await
diff: @@ -75,11 +75,11 @@ describe('Auth', () => {
  enrollType: 'whitelist',
  whitelist: [whitelistUser]
  });
  - return new Promise((resolve, reject) => {
  - chai.request(app)
  + const res = await chai.request(app)
  .post(`${BASE_URL}/register`)
  .send(registerUser)
  - .end(async (err, res) => {
  + .catch(err => err.response);
  +
  res.status.should.be.equal(204);
  // Get updated Course.
  const resultNoElemCourse = await Course.findById(noElemCourse._id)
  @@ -95,9 +95,7 @@ describe('Auth', () => {
  resultElemCourse.whitelist[0].uid.should.be.equal(resultElemCourse.students[0].uid);
  resultElemCourse.whitelist[0].firstName.should.be.equal(resultElemCourse.students[0].profile.firstName.toLowerCase());
  resultElemCourse.whitelist[0].lastName.should.be.equal(resultElemCourse.students[0].profile.lastName.toLowerCase());
  - resolve();
  - });
  - });
  +
  });
  it('should fail (registration as admin)', async () => {
  