mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
feat: move terminal settings, look and ssh tools into ssh-terminal plugin
This commit is contained in:
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");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user