mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
13 lines
465 B
TypeScript
13 lines
465 B
TypeScript
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({});
|
|
});
|
|
});
|