From f37a303a1c79241c27a526fcc22bc9c267d3bafe Mon Sep 17 00:00:00 2001 From: cptran777 Date: Mon, 13 Aug 2018 15:01:19 -0700 Subject: [PATCH] Handling for deprecation messages to use defineProperty --- .../components/datasets/health/metrics-charts-test.js | 1 + wherehows-web/tests/test-helper.js | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/wherehows-web/tests/integration/components/datasets/health/metrics-charts-test.js b/wherehows-web/tests/integration/components/datasets/health/metrics-charts-test.js index 5a0a820443..1abee666c9 100644 --- a/wherehows-web/tests/integration/components/datasets/health/metrics-charts-test.js +++ b/wherehows-web/tests/integration/components/datasets/health/metrics-charts-test.js @@ -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}}`); diff --git a/wherehows-web/tests/test-helper.js b/wherehows-web/tests/test-helper.js index 0382a848dd..d6f494aa13 100644 --- a/wherehows-web/tests/test-helper.js +++ b/wherehows-web/tests/test-helper.js @@ -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));