mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 22:25: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
@@ -212,6 +212,20 @@ describe("ctx.events namespacing", () => {
|
||||
|
||||
expect(() => ctx.events.emit("host.status", {})).not.toThrow();
|
||||
});
|
||||
|
||||
it("gates listening to core topics the same way", () => {
|
||||
const ctx = context(["kv:own"]);
|
||||
|
||||
expect(() => ctx.events.on("user.deleted", () => {})).toThrow(
|
||||
/may only listen to/,
|
||||
);
|
||||
expect(() =>
|
||||
ctx.events.on("plugin.other-plugin.thing", () => {}),
|
||||
).not.toThrow();
|
||||
expect(() =>
|
||||
context(["events:core"]).events.on("user.deleted", () => {}),
|
||||
).not.toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
describe("ctx.kv limits", () => {
|
||||
|
||||
Reference in new issue
Block a user