From ccd60e78a421e1c7522e57f09cd434d630e39e34 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Mon, 4 Dec 2017 21:40:24 -0500 Subject: [PATCH] Remove usage of Ember.Handlebars.SafeString. It has been long deprecated, and is removed in Ember 3.0 (current canary builds). --- tests/unit/legacy-0-6-x/test-module-for-component-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/legacy-0-6-x/test-module-for-component-test.js b/tests/unit/legacy-0-6-x/test-module-for-component-test.js index ba54a7a28..4644c8016 100644 --- a/tests/unit/legacy-0-6-x/test-module-for-component-test.js +++ b/tests/unit/legacy-0-6-x/test-module-for-component-test.js @@ -17,6 +17,7 @@ import qunitModuleFor from '../../helpers/qunit-module-for'; import hasjQuery from '../../helpers/has-jquery'; import hbs from 'htmlbars-inline-precompile'; import { fireEvent, focus, blur } from '../../helpers/events'; +import { htmlSafe } from '@ember/string'; var Service = EmberService || EmberObject; @@ -34,7 +35,7 @@ var PrettyColor = Component.extend({ classNames: ['pretty-color'], attributeBindings: ['style'], style: computed('name', function() { - return new Ember.Handlebars.SafeString('color: ' + this.get('name') + ';'); + return htmlSafe('color: ' + this.get('name') + ';'); }), click() {