fix(system): allow wrapping components both from presets and plugins (#9919)

Refs #7232
This commit is contained in:
Vladimír Gorej
2024-05-07 11:54:12 +02:00
committed by GitHub
parent 6ae2c1fb15
commit 877470b522
7 changed files with 6 additions and 36 deletions

View File

@@ -187,14 +187,11 @@ describe("wrapComponents", () => {
expect(children.eq(1).text()).toEqual("WOW much data")
})
it("should wrap correctly when registering multiple plugins targeting the same component", function () {
it("should wrap component correctly when performing subsequent plugin registering targeting the same component", function () {
// Given
const mySystem = new System({
pluginsOptions: {
pluginLoadType: "chain"
},
plugins: [
() => {
return {