feat: move terminal settings, look and ssh tools into ssh-terminal plugin

This commit is contained in:
LukeGus committed 2026-09-29 02:38:37 -05:00
1 parent ffa872ebd3
commit d9bba10612
242 files changed
+25071 -7207

No files matched your search

@@ -0,0 +1,16 @@
import { describe, expect, it } from "vitest";
import { renderHook, waitFor } from "@testing-library/react";
import {
FALLBACK_CONSOLE_LOOK,
useConsoleLook,
} from "../../../src/frontend/components/console-look";
describe("useConsoleLook", () => {
it("uses plain colors while the SSH terminal is off", async () => {
const { result } = renderHook(() =>
useConsoleLook({ id: "1", name: "h", ip: "10.0.0.1", port: 22 }, "dark"),
);
await waitFor(() => expect(result.current).toBe(FALLBACK_CONSOLE_LOOK));
expect(result.current.colors.background).toBe("#0c0d0b");
});
});