DEV: Add missing `decorateCookedElement` id (#20330)
Fixes "`decorateCooked` should be supplied with an `id` option to avoid memory leaks in test mode. The id will be used to ensure the decorator is only applied once." warnings
This commit is contained in:
parent
7cc0c59469
commit
c541bd05a8
|
@ -23,7 +23,9 @@ acceptance("Acceptance | decorateCookedElement", function () {
|
||||||
DemoComponent
|
DemoComponent
|
||||||
);
|
);
|
||||||
|
|
||||||
withPluginApi(0, (api) => {
|
withPluginApi(
|
||||||
|
0,
|
||||||
|
(api) => {
|
||||||
api.decorateCookedElement((cooked, helper) => {
|
api.decorateCookedElement((cooked, helper) => {
|
||||||
if (helper.getModel().post_number !== 1) {
|
if (helper.getModel().post_number !== 1) {
|
||||||
return;
|
return;
|
||||||
|
@ -46,7 +48,9 @@ acceptance("Acceptance | decorateCookedElement", function () {
|
||||||
hbs` with more content from glimmer`
|
hbs` with more content from glimmer`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
},
|
||||||
|
{ id: "render-glimmer-test" }
|
||||||
|
);
|
||||||
|
|
||||||
await visit("/t/internationalization-localization/280");
|
await visit("/t/internationalization-localization/280");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue