feat: finish the remote-desktop plugin (B14)

This commit is contained in:
LukeGus committed 2026-09-24 01:02:45 -05:00
1 parent 0af2c94983
commit 14eb558b85
215 files changed
+30029 -3921

No files matched your search

@@ -83,6 +83,24 @@ describe("contributes.settings", () => {
expect(errors.join(" ")).toContain('Unknown field "wat"');
});
it("accepts a hidden field and rejects a non-boolean hidden", () => {
expect(
validateManifest(
withSettings({
host: {
fields: [{ key: "a", type: "number", labelKey: "k", hidden: true }],
},
}),
),
).toEqual([]);
const errors = validateManifest(
withSettings({
admin: [{ key: "a", type: "string", labelKey: "k", hidden: "yes" }],
}),
);
expect(errors.join(" ")).toContain("hidden must be a boolean");
});
it("rejects an unknown scope", () => {
const errors = validateManifest(
withSettings({ global: [{ key: "a", type: "string", labelKey: "k" }] }),