mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
change app plugins to be a map to prevent duplicates and provide easier access
This commit is contained in:
@@ -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"]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user