message: bug: Fix depcreated warning and await for mongoose.connect
diff: @@ -19,17 +19,14 @@ export class FixtureLoader {
  private binaryDirectory = 'build/fixtures/binaryData/';
  - constructor() {
  - (<any>mongoose).Promise = global.Promise;
  -
  + async load() {
  if (!mongoose.connection.readyState) {
  - mongoose.connect(config.database);
  - }
  + await mongoose.connect(config.database, {useNewUrlParser: true});
  }
  - async load() {
  await mongoose.connection.dropDatabase();
  await User.ensureIndexes();
  +
  const userfixtures = fs.readdirSync(this.usersDirectory);
  const coursefixtures = fs.readdirSync(this.coursesDirectory);
  