mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
feat: show plugin download counts only and stop CI builds inflating them
This commit is contained in:
1 parent
4fbdf15351
commit
11f4674bd2
37 files changed
+14280
-286
No files matched your search
@@ -61,8 +61,7 @@ function entry(
|
||||
pinnedVersion: null,
|
||||
autoUpdate: false,
|
||||
bundled: true,
|
||||
installCount: null,
|
||||
installCountSource: null,
|
||||
downloads: null,
|
||||
...overrides,
|
||||
};
|
||||
}
|
||||
@@ -235,9 +234,9 @@ describe("popularity", () => {
|
||||
const rows = mergePlugins(
|
||||
[],
|
||||
[
|
||||
entry({ id: "a", name: "A", installed: false, installCount: 5 }),
|
||||
entry({ id: "b", name: "B", installed: false, installCount: null }),
|
||||
entry({ id: "c", name: "C", installed: false, installCount: 90 }),
|
||||
entry({ id: "a", name: "A", installed: false, downloads: 5 }),
|
||||
entry({ id: "b", name: "B", installed: false, downloads: null }),
|
||||
entry({ id: "c", name: "C", installed: false, downloads: 90 }),
|
||||
],
|
||||
);
|
||||
expect(sortPlugins(rows, "popular").map((r) => r.id)).toEqual([
|
||||
|
||||
Reference in new issue
Block a user