Handling for deprecation messages to use defineProperty

This commit is contained in:
cptran777 2018-08-13 15:01:19 -07:00
parent c9e74754b4
commit f37a303a1c
2 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,7 @@ module('Integration | Component | datasets/health/metrics-charts', function(hook
});
await render(hbs`{{datasets/health/metrics-charts
isActiveTab=true
categoryData=categoryData
severityData=severityData}}`);

View File

@ -2,6 +2,15 @@ import Application from '../app';
import config from '../config/environment';
import { setApplication } from '@ember/test-helpers';
import { start } from 'ember-qunit';
import { registerDeprecationHandler } from '@ember/debug';
// Suggestion to keep this here until we are ready to handle the deprecation to use definePRoperty for
// computed properties. Otherwise, tests and build logs becoming overwhelming to look at
registerDeprecationHandler(function(message, { id }, next) {
if (!message.includes('defineProperty')) {
next(...arguments);
}
});
setApplication(Application.create(config.APP));