common/corpus-common-addon/tests/dummy/config/environment.js
changeset 127 5cd8c3065c38
child 261 02e2396bcbbc
equal deleted inserted replaced
126:e87a340711a4 127:5cd8c3065c38
       
     1 /* jshint node: true */
       
     2 
       
     3 module.exports = function(environment) {
       
     4   var ENV = {
       
     5     modulePrefix: 'dummy',
       
     6     environment: environment,
       
     7     baseURL: '/',
       
     8     locationType: 'auto',
       
     9     EmberENV: {
       
    10       FEATURES: {
       
    11         // Here you can enable experimental features on an ember canary build
       
    12         // e.g. 'with-controller': true
       
    13       }
       
    14     },
       
    15 
       
    16     APP: {
       
    17       // Here you can pass flags/options to your application instance
       
    18       // when it is created
       
    19     }
       
    20   };
       
    21 
       
    22   if (environment === 'development') {
       
    23     // ENV.APP.LOG_RESOLVER = true;
       
    24     // ENV.APP.LOG_ACTIVE_GENERATION = true;
       
    25     // ENV.APP.LOG_TRANSITIONS = true;
       
    26     // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
       
    27     // ENV.APP.LOG_VIEW_LOOKUPS = true;
       
    28   }
       
    29 
       
    30   if (environment === 'test') {
       
    31     // Testem prefers this...
       
    32     ENV.baseURL = '/';
       
    33     ENV.locationType = 'none';
       
    34 
       
    35     // keep test console output quieter
       
    36     ENV.APP.LOG_ACTIVE_GENERATION = false;
       
    37     ENV.APP.LOG_VIEW_LOOKUPS = false;
       
    38 
       
    39     ENV.APP.rootElement = '#ember-testing';
       
    40   }
       
    41 
       
    42   if (environment === 'production') {
       
    43 
       
    44   }
       
    45 
       
    46   return ENV;
       
    47 };