mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
feat: show plugin features from the manifest on the plugin page
This commit is contained in:
1 parent
60024bdd4e
commit
b6bb3ffc73
13 files changed
+158
-2
No files matched your search
@@ -143,6 +143,17 @@ describe("parseRegistryIndex", () => {
|
||||
expect(index.plugins[1].versions[0].notes).toHaveLength(20_000);
|
||||
});
|
||||
|
||||
it("keeps only usable feature lines", () => {
|
||||
const index = parseRegistryIndex({
|
||||
plugins: [
|
||||
{ id: "docker", features: ["Logs", 5, ""], versions: [version()] },
|
||||
{ id: "other", features: "Logs", versions: [version()] },
|
||||
],
|
||||
});
|
||||
expect(index.plugins[0].features).toEqual(["Logs"]);
|
||||
expect(index.plugins[1].features).toEqual([]);
|
||||
});
|
||||
|
||||
it("refuses something that is not an index", () => {
|
||||
expect(() => parseRegistryIndex({ nope: true })).toThrow(/no plugins/);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user