test: simplify plugin metadata assertions

This commit is contained in:
Peter Steinberger
2026-04-11 00:12:26 +01:00
parent 71efba043c
commit 66ac60acbd

View File

@@ -636,7 +636,7 @@ module.exports = {
);
const memory = registry.plugins.find((entry) => entry.id === "memory-external");
expect(memory?.status).toBe("disabled");
expect(String(memory?.error ?? "")).toContain('memory slot set to "memory-other"');
expect(memory?.error ?? "").toContain('memory slot set to "memory-other"');
});
it("re-evaluates memory slot gating after resolving exported plugin kind", async () => {
@@ -676,6 +676,6 @@ module.exports = {
);
const memory = registry.plugins.find((entry) => entry.id === "memory-export-only");
expect(memory?.status).toBe("disabled");
expect(String(memory?.error ?? "")).toContain('memory slot set to "memory-other"');
expect(memory?.error ?? "").toContain('memory slot set to "memory-other"');
});
});