change app plugins to be a map to prevent duplicates and provide easier access

This commit is contained in:
dswbx
2025-06-14 07:22:44 +02:00
parent 6e2596fb77
commit 8e1ecfcfe3
4 changed files with 19 additions and 15 deletions

View File

@@ -101,7 +101,7 @@ describe("App tests", async () => {
"onFirstBoot",
"onBuilt",
]);
expect(app.plugins).toHaveLength(1);
expect(app.plugins.map((p) => p.name)).toEqual(["test"]);
expect(app.plugins.size).toBe(1);
expect(Array.from(app.plugins.keys())).toEqual(["test"]);
});
});