mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 23:25:24 +00:00
feat: type the plugin host record, move plugin strings out of core and add lint checks
This commit is contained in:
1 parent
bba06f7ff6
commit
b8bbcd2196
626 files changed
+23884
-4590
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { guestPluginSettings } from "../../src/backend/routes.js";
|
||||
|
||||
describe("guestPluginSettings", () => {
|
||||
it("names the plugin that keeps each switch an imported guest needs", () => {
|
||||
expect(guestPluginSettings("rdp", true)).toEqual({
|
||||
"remote-desktop": { enableRdp: true, rdpPort: 3389 },
|
||||
docker: { enableDocker: true },
|
||||
});
|
||||
expect(guestPluginSettings("ssh", false)).toEqual({});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user