import { discourseModule, exists } from "discourse/tests/helpers/qunit-helpers"; import componentTest, { setupRenderingTest, } from "discourse/tests/helpers/component-test"; discourseModule("Integration | Component | html-safe-helper", function (hooks) { setupRenderingTest(hooks); componentTest("default", { template: "{{html-safe string}}", beforeEach() { this.set("string", "

biscuits

"); }, async test(assert) { assert.ok(exists("p.cookies"), "it displays the string as html"); }, }); });