all files / dist/config/ models.js

87.5% Statements 7/8
50% Branches 1/2
100% Functions 2/2
87.5% Lines 7/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54                18×                                                       18×       18×       18×            
'use strict';
 
Object.defineProperty(exports, "__esModule", {
  value: true
});
/**
 * Models configs.
 */
exports.default = {
  models: function models(api) {
    return {
      // ---------------------------------------------------------------------
      // Connection string for the MongoDB server
      // ---------------------------------------------------------------------
      connectionString: 'mongodb://localhost/ConnectionTest',
 
      // ---------------------------------------------------------------------
      // Which MongoDB package should we use?
      //
      // Valid Values:
      //  - mockgoose: Used for dev or test servers. This shouldn't be used on
      //    a production server, every time the server is shutdown all
      //    information is lost.
      //  - mongoose: Used for production server.
      // ---------------------------------------------------------------------
      pkg: 'mockgoose'
    };
  }
};
 
/**
 * Models configs for test environment.
 *
 * @type {{models: (function())}}
 */
 
var test = exports.test = {
  models: function models(api) {
    // by default we use mockgoose
    var pkg = 'mockgoose';
 
    // if the environment have a MOCKGOOSE var set to false we use mongoose instead
    // of mockgoose
    Iif (process.env.MOCKGOOSE === 'false') {
      pkg = 'mongoose';
    }
 
    return {
      pkg: pkg
    };
  }
};
//# sourceMappingURL=models.js.map