From b9bcb225f2883210d062157e51da08639c1bfae8 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Wed, 2 Nov 2022 10:46:52 +0100 Subject: [PATCH] DEV: Fix qunit hook issue (#18829) --- .../discourse/tests/unit/lib/ember-action-modifer-test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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.js index 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` `; - hooks.beforeEach(function () { + innerHooks.beforeEach(function () { this.owner.register( "component:example-classic-button", ExampleClassicButton