mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
23 lines
683 B
JavaScript
23 lines
683 B
JavaScript
import { render } from "@ember/test-helpers";
|
|
import { hbs } from "ember-cli-htmlbars";
|
|
import { module, test } from "qunit";
|
|
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
|
|
|
|
module("Integration | Helper | emoji", function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test("it renders", async function (assert) {
|
|
await render(hbs`{{emoji "tada"}}`);
|
|
assert.dom(`.emoji[title="tada"]`).exists();
|
|
});
|
|
|
|
test("it renders custom title", async function (assert) {
|
|
const title = "custom title";
|
|
this.set("title", title);
|
|
|
|
await render(hbs`{{emoji "tada" title=this.title}}`);
|
|
|
|
assert.dom(`.emoji[title="${title}"]`).exists();
|
|
});
|
|
});
|