Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import { describe, expect, it } from "vite-plus/test";
import { resolveDesktopPairingUrl } from "./pairingUrls";
describe("settings pairing URL helpers", () => {
it("uses direct backend pairing URLs for HTTP and HTTPS endpoints", () => {
expect(resolveDesktopPairingUrl("http://192.168.1.44:3773", "PAIRCODE")).toBe(
"http://192.168.1.44:3773/pair#token=PAIRCODE",
);
expect(resolveDesktopPairingUrl("https://host.tailnet.example.ts.net:3773", "PAIRCODE")).toBe(
"https://host.tailnet.example.ts.net:3773/pair#token=PAIRCODE",
);
});
});