Open History to see the last commit
1import { describe, expect, it } from "vite-plus/test";
2
3import { previewAutomationHostFocusConcurrencyKey } from "./preview.ts";
4
5describe("preview state commands", () => {
6 it("keeps focus updates from replacement host connections independent", () => {
7 const first = previewAutomationHostFocusConcurrencyKey({
8 environmentId: "environment-1",
9 input: { clientId: "client-1", connectionId: "connection-1" },
10 });
11 const replacement = previewAutomationHostFocusConcurrencyKey({
12 environmentId: "environment-1",
13 input: { clientId: "client-1", connectionId: "connection-2" },
14 });
15
16 expect(first).not.toBe(replacement);
17 });
18});