mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
DEV: Fix qunit hook issue (#18829)
This commit is contained in:
parent
45e8995eb1
commit
b9bcb225f2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user