mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 15:45:23 +00:00
feat: add descriptions to plugin host enable toggles
This commit is contained in:
1 parent
c7fd900732
commit
7b1e0294aa
18 files changed
+53
-6
No files matched your search
@@ -301,6 +301,21 @@ describe("contributes.settings", () => {
|
||||
expect(errors.join(" ")).toContain("enableLabelKey");
|
||||
});
|
||||
|
||||
it("accepts an enableDescriptionKey and rejects an empty one", () => {
|
||||
const host = { enableKey: "enableThing", enableLabelKey: "k", fields: [] };
|
||||
|
||||
expect(
|
||||
validateManifest(
|
||||
withSettings({ host: { ...host, enableDescriptionKey: "d" } }),
|
||||
),
|
||||
).toEqual([]);
|
||||
expect(
|
||||
validateManifest(
|
||||
withSettings({ host: { ...host, enableDescriptionKey: "" } }),
|
||||
).join(" "),
|
||||
).toContain("enableDescriptionKey");
|
||||
});
|
||||
|
||||
it("rejects a key that would not be index-safe", () => {
|
||||
const errors = validateManifest(
|
||||
withSettings({
|
||||
|
||||
Reference in new issue
Block a user