mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 16:29:32 +08:00
DEV: Convert all uses of exists
to qunit-dom (#29667)
This commit is contained in:
@ -3,11 +3,7 @@ import hbs from "htmlbars-inline-precompile";
|
||||
import { module, test } from "qunit";
|
||||
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
|
||||
import pretender from "discourse/tests/helpers/create-pretender";
|
||||
import {
|
||||
count,
|
||||
createFile,
|
||||
exists,
|
||||
} from "discourse/tests/helpers/qunit-helpers";
|
||||
import { count, createFile } from "discourse/tests/helpers/qunit-helpers";
|
||||
|
||||
const fakeUpload = {
|
||||
type: ".png",
|
||||
@ -53,7 +49,7 @@ module("Discourse Chat | Component | chat-composer-uploads", function (hooks) {
|
||||
`);
|
||||
|
||||
assert.strictEqual(count(".chat-composer-upload"), 1);
|
||||
assert.strictEqual(exists(".chat-composer-upload"), true);
|
||||
assert.dom(".chat-composer-upload").exists();
|
||||
});
|
||||
|
||||
test("upload starts and completes", async function (assert) {
|
||||
|
Reference in New Issue
Block a user