diff --git a/app/assets/javascripts/discourse/tests/unit/utils/decorators-test.js b/app/assets/javascripts/discourse/tests/unit/utils/decorators-test.js index c85e4eb81ea..65239a6dbd4 100644 --- a/app/assets/javascripts/discourse/tests/unit/utils/decorators-test.js +++ b/app/assets/javascripts/discourse/tests/unit/utils/decorators-test.js @@ -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);