DEV: Fix qunit hook issue (#18829)

This commit is contained in:
Jarek Radosz 2022-11-02 10:46:52 +01:00 committed by GitHub
parent 45e8995eb1
commit b9bcb225f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`
<a
href
@ -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