* Use QUnit `module` instead of `discourseModule` * Use QUnit `test` instead of `componentTest` * Use angle-bracket syntax * Remove jQuery usage * Improve assertions (and actually fix some of them)
17 lines
637 B
JavaScript
17 lines
637 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 "htmlbars-inline-precompile";
|
|
|
|
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");
|
|
});
|
|
});
|