DEV: Fix this.clearRender deprecation warning ()

```
{"type":"warn","text":"DEPRECATION: Using this.clearRender has been deprecated, consider using `clearRender` imported from `@ember/test-helpers`. [deprecation id: ember-test-helpers.setup-rendering-context.clearRender]"}
```
This commit is contained in:
Jarek Radosz 2022-06-20 15:13:42 +02:00 committed by GitHub
parent 93b8811f08
commit 051167c98a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,5 @@
import Component from "@ember/component";
import { clearRender } from "@ember/test-helpers";
import discourseComputed, {
afterRender,
} from "discourse-common/utils/decorators";
@ -55,7 +56,7 @@ discourseModule("Unit | Utils | decorators", function (hooks) {
assert.ok(exists(document.querySelector(".foo-component")));
assert.strictEqual(this.baz, 1);
await this.clearRender();
await clearRender();
assert.ok(!exists(document.querySelector(".foo-component")));
assert.strictEqual(this.baz, 1);