mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 07:05:24 +00:00
feat(split-screen): redesign split screen with free-form panes and pane picker
This commit is contained in:
1 parent
5f3372f9f6
commit
81e7aa6274
46 files changed
+5027
-2537
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import { createId } from "@/lib/create-id";
|
||||
|
||||
afterEach(() => vi.unstubAllGlobals());
|
||||
|
||||
describe("createId", () => {
|
||||
it("uses randomUUID when available", () => {
|
||||
vi.stubGlobal("crypto", { randomUUID: () => "uuid-1" });
|
||||
expect(createId()).toBe("uuid-1");
|
||||
});
|
||||
|
||||
it("falls back without randomUUID, e.g. over plain http", () => {
|
||||
vi.stubGlobal("crypto", {});
|
||||
const first = createId();
|
||||
const second = createId();
|
||||
expect(first).toBeTruthy();
|
||||
expect(second).not.toBe(first);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user