1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-07 22:45:24 +02:00

Added option to disable audit in tests

This commit is contained in:
zinyando 2016-05-13 17:48:46 +02:00
parent 9ba3f3b3f2
commit e2037958f4
2 changed files with 10 additions and 4 deletions

View file

@ -16,7 +16,7 @@ import config from '../config/environment';
export default Ember.Service.extend({
sessionService: Ember.inject.service('session'),
ready: false,
enabled: true,
enabled: config.APP.auditEnabled,
init() {
this.start();

View file

@ -15,7 +15,7 @@ module.exports = function(environment) {
var ENV = {
modulePrefix: 'documize',
podModulePrefix: 'documize/pods',
locationType: 'history',
locationType: 'auto',
environment: environment,
baseURL: '/',
apiHost: '',
@ -28,12 +28,18 @@ module.exports = function(environment) {
"ember-cli-mirage": {
enabled: false
},
APP: {}
APP: {
// Allows to disable audit service in tests
auditEnabled: true
}
};
if (environment === 'development') {
ENV.APP.LOG_TRANSITIONS = true;
ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
ENV['ember-cli-mirage'] = {
enabled: false
};
ENV.apiHost = "https://localhost:5001";
// ENV.apiHost = "https://demo1.dev:5001";
@ -52,9 +58,9 @@ module.exports = function(environment) {
ENV['ember-cli-mirage'] = {
enabled: true
};
ENV.APP.auditEnabled = false;
ENV.apiHost = "https://localhost:5001";
// ENV.apiHost = "https://demo1.dev:5001";
}
if (environment === 'production') {