Revert "DEV: enforces ember-template-lint: no-triple-curlies (#9150)"

This reverts commit d436b600fb.

Triple curlies are still necessary for some raw templates.
This commit is contained in:
romanrizzi
2020-03-10 15:00:12 -03:00
parent 74acbad505
commit f795c1b8e8
152 changed files with 284 additions and 345 deletions

View File

@@ -1,14 +0,0 @@
import componentTest from "helpers/component-test";
moduleForComponent("html-safe-helper", { integration: true });
componentTest("default", {
template: "{{html-safe string}}",
beforeEach() {
this.set("string", "<p class='cookies'>biscuits</p>");
},
async test(assert) {
assert.ok(exists("p.cookies"), "it displays the string as html");
}
});

View File

@@ -5,8 +5,7 @@ import {
propertyNotEqual,
fmt,
i18n,
url,
htmlSafe
url
} from "discourse/lib/computed";
QUnit.module("lib:computed", {
@@ -155,12 +154,3 @@ QUnit.test("url", assert => {
"it supports urls with a prefix"
);
});
QUnit.test("htmlSafe", assert => {
const cookies = "<p>cookies and <b>biscuits</b></p>";
const t = EmberObject.extend({
desc: htmlSafe("cookies")
}).create({ cookies });
assert.equal(t.get("desc").string, cookies);
});