A platform for community discussion. Free, open, simple.
DEV: Fix qunit hook issue (#18829)
Jarek Radoszb9bcb225f288
diff --git a/app/assets/javascripts/discourse/tests/unit/lib/ember-action-modifer-test.js b/app/assets/javascripts/discourse/tests/unit/lib/ember-action-modifer-test.jsindex 6a865100e1a..985da6c5475 100644--- a/app/assets/javascripts/discourse/tests/unit/lib/ember-action-modifer-test.js+++ b/app/assets/javascripts/discourse/tests/unit/lib/ember-action-modifer-test.js@@ -75,7 +75,7 @@ module("Unit | Lib | ember-action-modifer", function (hooks) {assert.strictEqual(this.dblClicked, 0);});- module("used on a classic component", function () {+ module("used on a classic component", function (innerHooks) {const ExampleClassicButton = ClassicComponent.extend({tagName: "",onDoSomething: null,@@ -84,6 +84,7 @@ module("Unit | Lib | ember-action-modifer", function (hooks) {this.onDoSomething?.("doSomething");},});+const ExampleClassicButtonWithActions = ClassicComponent.extend({tagName: "",onDoSomething: null,@@ -98,6 +99,7 @@ module("Unit | Lib | ember-action-modifer", function (hooks) {},},});+const exampleClassicButtonTemplate = hbs`<ahref@@ -109,7 +111,7 @@ module("Unit | Lib | ember-action-modifer", function (hooks) {</a>`;- hooks.beforeEach(function () {+ innerHooks.beforeEach(function () {this.owner.register("component:example-classic-button",ExampleClassicButton