|
1 |
| -'use strict'; |
| 1 | +"use strict"; |
2 | 2 |
|
3 |
| -module.exports = function(environment) { |
| 3 | +module.exports = function (environment) { |
4 | 4 | let ENV = {
|
5 |
| - modulePrefix: 'routing', |
| 5 | + modulePrefix: "routing", |
6 | 6 | environment,
|
7 |
| - rootURL: '/', |
8 |
| - locationType: 'auto', |
| 7 | + rootURL: "/", |
| 8 | + locationType: "auto", |
| 9 | + MIN_DELAY: 1, |
| 10 | + MAX_DELAY: 3000, |
9 | 11 | EmberENV: {
|
10 | 12 | FEATURES: {
|
11 | 13 | // Here you can enable experimental features on an ember canary build
|
12 | 14 | // e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
|
13 | 15 | },
|
14 | 16 | EXTEND_PROTOTYPES: {
|
15 | 17 | // Prevent Ember Data from overriding Date.parse.
|
16 |
| - Date: false |
17 |
| - } |
| 18 | + Date: false, |
| 19 | + }, |
18 | 20 | },
|
19 | 21 |
|
20 | 22 | APP: {
|
21 | 23 | // Here you can pass flags/options to your application instance
|
22 | 24 | // when it is created
|
23 |
| - } |
| 25 | + }, |
24 | 26 | };
|
25 | 27 |
|
26 |
| - if (environment === 'development') { |
| 28 | + if (environment === "development") { |
27 | 29 | // ENV.APP.LOG_RESOLVER = true;
|
28 | 30 | // ENV.APP.LOG_ACTIVE_GENERATION = true;
|
29 | 31 | // ENV.APP.LOG_TRANSITIONS = true;
|
30 | 32 | // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
31 | 33 | // ENV.APP.LOG_VIEW_LOOKUPS = true;
|
32 | 34 | }
|
33 | 35 |
|
34 |
| - if (environment === 'test') { |
| 36 | + if (environment === "test") { |
35 | 37 | // Testem prefers this...
|
36 |
| - ENV.locationType = 'none'; |
| 38 | + ENV.locationType = "none"; |
| 39 | + ENV.MAX_DELAY = 1; |
37 | 40 |
|
38 | 41 | // keep test console output quieter
|
39 | 42 | ENV.APP.LOG_ACTIVE_GENERATION = false;
|
40 | 43 | ENV.APP.LOG_VIEW_LOOKUPS = false;
|
41 | 44 |
|
42 |
| - ENV.APP.rootElement = '#ember-testing'; |
| 45 | + ENV.APP.rootElement = "#ember-testing"; |
43 | 46 | ENV.APP.autoboot = false;
|
44 | 47 | }
|
45 | 48 |
|
46 |
| - if (environment === 'production') { |
| 49 | + if (environment === "production") { |
47 | 50 | // here you can enable a production-specific feature
|
48 | 51 | }
|
49 | 52 |
|
|
0 commit comments