See https://github.com/ember-cli/ember-cli-htmlbars#tagged-template-usage--migrating-from-htmlbars-inline-precompile
17 lines
633 B
JavaScript
17 lines
633 B
JavaScript
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 | empty-state", function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test("it renders", async function (assert) {
|
|
await render(hbs`<EmptyState @title="title" @body="body" />`);
|
|
|
|
assert.strictEqual(query("[data-test-title]").textContent, "title");
|
|
assert.strictEqual(query("[data-test-body]").textContent, "body");
|
|
});
|
|
});
|