mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 07:05:24 +00:00
fix: finish 2.9.0 plugin moves and get every check green
This commit is contained in:
1 parent
8c1e02af89
commit
6489b62ece
335 files changed
+29878
-17749
No files matched your search
@@ -395,3 +395,22 @@ describe("service registry", () => {
|
||||
expect(error.message).toContain("provider");
|
||||
});
|
||||
});
|
||||
|
||||
describe("provider clashes", () => {
|
||||
it("refuses a second plugin answering to the same service and name", async () => {
|
||||
register();
|
||||
expect(() => register({ pluginId: "other-plugin" })).toThrow(
|
||||
/already provided by provider-plugin/,
|
||||
);
|
||||
const { listRegistrationConflicts } =
|
||||
await import("../../plugins/conflicts.js");
|
||||
expect(listRegistrationConflicts()).toContainEqual(
|
||||
expect.objectContaining({ kind: "service", pluginId: "other-plugin" }),
|
||||
);
|
||||
});
|
||||
|
||||
it("lets a plugin replace its own registration", () => {
|
||||
register();
|
||||
expect(() => register()).not.toThrow();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user