From 83a521e8c6b511315610fe35575d803973448b5b Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Wed, 27 Nov 2019 16:44:34 -0700 Subject: [PATCH] DEV: Fix failing test with watched words Follow up to: bb31e7f5b6150e7d30461cdeef9b537f43f3caee This commit fixes this failing test: `Assertion Failed: it should escape watched words` Now that we have a handlebars template we can us it for escaping because it does that for us. --- .../javascripts/admin/components/admin-watched-word.js.es6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/admin/components/admin-watched-word.js.es6 b/app/assets/javascripts/admin/components/admin-watched-word.js.es6 index 8e81ee36765..d4f5108c0fd 100644 --- a/app/assets/javascripts/admin/components/admin-watched-word.js.es6 +++ b/app/assets/javascripts/admin/components/admin-watched-word.js.es6 @@ -1,6 +1,5 @@ import Component from "@ember/component"; import { iconHTML } from "discourse-common/lib/icon-library"; -import { escapeExpression } from "discourse/lib/utilities"; export default Component.extend({ classNames: ["watched-word"], @@ -9,7 +8,7 @@ export default Component.extend({ init() { this._super(...arguments); - this.set("watchedWord", `${escapeExpression(this.get("word.word"))}`); + this.set("watchedWord", this.get("word.word")); }, click() {