DEV: Remove unnecessary `await settled()` (#24584)

This commit is contained in:
Jarek Radosz 2023-11-28 10:45:20 +01:00 committed by GitHub
parent b2dfc320aa
commit cfa7dcaf0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { click, render, settled, waitFor } from "@ember/test-helpers";
import { click, render, waitFor } from "@ember/test-helpers";
import hbs from "htmlbars-inline-precompile";
import { module, test } from "qunit";
import { setupRenderingTest } from "discourse/tests/helpers/component-test";
@ -51,7 +51,6 @@ module("Discourse Chat | Component | chat-composer-uploads", function (hooks) {
await render(hbs`
<ChatComposerUploads @existingUploads={{this.existingUploads}} @fileUploadElementId="chat-widget-uploader" />
`);
await settled();
assert.strictEqual(count(".chat-composer-upload"), 1);
assert.strictEqual(exists(".chat-composer-upload"), true);