import { module, test } from "qunit"; import { setupRenderingTest } from "discourse/tests/helpers/component-test"; import { render } from "@ember/test-helpers"; import { query } from "discourse/tests/helpers/qunit-helpers"; import { hbs } from "ember-cli-htmlbars"; module("Integration | Component | Widget | post-cooked", function (hooks) { setupRenderingTest(hooks); test("quotes with no username and no valid topic", async function (assert) { this.set("args", { cooked: `\n

Testing the issue

`, }); await render( hbs`` ); assert.strictEqual(query("blockquote").innerText, "abcd"); }); });