mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-14 10:19:51 +00:00
Handling for deprecation messages to use defineProperty
This commit is contained in:
parent
c9e74754b4
commit
f37a303a1c
@ -31,6 +31,7 @@ module('Integration | Component | datasets/health/metrics-charts', function(hook
|
|||||||
});
|
});
|
||||||
|
|
||||||
await render(hbs`{{datasets/health/metrics-charts
|
await render(hbs`{{datasets/health/metrics-charts
|
||||||
|
isActiveTab=true
|
||||||
categoryData=categoryData
|
categoryData=categoryData
|
||||||
severityData=severityData}}`);
|
severityData=severityData}}`);
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,15 @@ import Application from '../app';
|
|||||||
import config from '../config/environment';
|
import config from '../config/environment';
|
||||||
import { setApplication } from '@ember/test-helpers';
|
import { setApplication } from '@ember/test-helpers';
|
||||||
import { start } from 'ember-qunit';
|
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));
|
setApplication(Application.create(config.APP));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user