mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 15:45:23 +00:00
feat: rebuild desktop sync as linked server accounts, fix packaged plugin bundles and UI scaling
This commit is contained in:
1 parent
7c02daccf4
commit
6cd9a2846d
242 files changed
+39127
-8558
No files matched your search
@@ -1,4 +1,7 @@
|
||||
import { describe, it, expect, afterEach, beforeEach, vi } from "vitest";
|
||||
|
||||
const getLinkedSession = vi.hoisted(() => vi.fn(async () => null));
|
||||
vi.mock("@/lib/linked-server", () => ({ getLinkedSession }));
|
||||
import {
|
||||
buildOriginWsUrl,
|
||||
resolveConnectionOrigin,
|
||||
@@ -166,15 +169,10 @@ describe("buildOriginWsUrl", () => {
|
||||
});
|
||||
|
||||
it("does not duplicate the Guacamole token on remote connections", async () => {
|
||||
win.electronAPI = {
|
||||
invoke: async (channel: string) => {
|
||||
if (channel === "get-remote-sync-config") {
|
||||
return { serverUrl: "https://termix.example" };
|
||||
}
|
||||
if (channel === "get-remote-sync-jwt") return "remote-jwt";
|
||||
return null;
|
||||
},
|
||||
};
|
||||
getLinkedSession.mockResolvedValueOnce({
|
||||
serverUrl: "https://termix.example",
|
||||
token: "remote-jwt",
|
||||
} as never);
|
||||
|
||||
const target = await buildOriginWsUrl({
|
||||
origin: "remote",
|
||||
|
||||
Reference in new issue
Block a user