mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-07 02:55:24 +00:00
chore: tier map for plugins that are not pinned yet
This commit is contained in:
1 parent
950e5398c9
commit
76d41a2cbb
6 files changed
+179
-12
No files matched your search
@@ -86,6 +86,20 @@ describe("scan beyond src", () => {
|
||||
expect(scan(dir)["src/ui/x.ts"]).toContain("/plugin-ws/extra-thing");
|
||||
});
|
||||
|
||||
it("knows ids from plugin-tiers.json, but not core words alone", () => {
|
||||
const dir = fixture({
|
||||
"docker/plugin-tiers.json": JSON.stringify({
|
||||
plugins: { "next-thing": { tier: "full" }, notes: { tier: "full" } },
|
||||
}),
|
||||
"src/ui/x.ts": 'const a = "next-thing";\nconst b = "notes";\n',
|
||||
"src/ui/y.ts": 'const route = "/plugin-api/notes/list";\n',
|
||||
});
|
||||
expect(scan(dir)).toEqual({
|
||||
"src/ui/x.ts": ["next-thing"],
|
||||
"src/ui/y.ts": ["/plugin-api/notes"],
|
||||
});
|
||||
});
|
||||
|
||||
it("reads electron", () => {
|
||||
const dir = fixture({
|
||||
"electron/main.cjs": 'invoke("/plugin-api/tunnels/list");\n',
|
||||
|
||||
Reference in new issue
Block a user