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:
parent
9ba3f3b3f2
commit
e2037958f4
2 changed files with 10 additions and 4 deletions
|
@ -16,7 +16,7 @@ import config from '../config/environment';
|
||||||
export default Ember.Service.extend({
|
export default Ember.Service.extend({
|
||||||
sessionService: Ember.inject.service('session'),
|
sessionService: Ember.inject.service('session'),
|
||||||
ready: false,
|
ready: false,
|
||||||
enabled: true,
|
enabled: config.APP.auditEnabled,
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
this.start();
|
this.start();
|
||||||
|
|
|
@ -15,7 +15,7 @@ module.exports = function(environment) {
|
||||||
var ENV = {
|
var ENV = {
|
||||||
modulePrefix: 'documize',
|
modulePrefix: 'documize',
|
||||||
podModulePrefix: 'documize/pods',
|
podModulePrefix: 'documize/pods',
|
||||||
locationType: 'history',
|
locationType: 'auto',
|
||||||
environment: environment,
|
environment: environment,
|
||||||
baseURL: '/',
|
baseURL: '/',
|
||||||
apiHost: '',
|
apiHost: '',
|
||||||
|
@ -28,12 +28,18 @@ module.exports = function(environment) {
|
||||||
"ember-cli-mirage": {
|
"ember-cli-mirage": {
|
||||||
enabled: false
|
enabled: false
|
||||||
},
|
},
|
||||||
APP: {}
|
APP: {
|
||||||
|
// Allows to disable audit service in tests
|
||||||
|
auditEnabled: true
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (environment === 'development') {
|
if (environment === 'development') {
|
||||||
ENV.APP.LOG_TRANSITIONS = true;
|
ENV.APP.LOG_TRANSITIONS = true;
|
||||||
ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
||||||
|
ENV['ember-cli-mirage'] = {
|
||||||
|
enabled: false
|
||||||
|
};
|
||||||
|
|
||||||
ENV.apiHost = "https://localhost:5001";
|
ENV.apiHost = "https://localhost:5001";
|
||||||
// ENV.apiHost = "https://demo1.dev:5001";
|
// ENV.apiHost = "https://demo1.dev:5001";
|
||||||
|
@ -52,9 +58,9 @@ module.exports = function(environment) {
|
||||||
ENV['ember-cli-mirage'] = {
|
ENV['ember-cli-mirage'] = {
|
||||||
enabled: true
|
enabled: true
|
||||||
};
|
};
|
||||||
|
ENV.APP.auditEnabled = false;
|
||||||
|
|
||||||
ENV.apiHost = "https://localhost:5001";
|
ENV.apiHost = "https://localhost:5001";
|
||||||
// ENV.apiHost = "https://demo1.dev:5001";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (environment === 'production') {
|
if (environment === 'production') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue