remoteConnectionEntryBehavior.test.ts 653 B

12345678910111213141516
  1. import { describe, expect, it } from "vitest";
  2. import { resolveSidebarOpenWorkspaceAction } from "@/lib/remoteConnectionEntryBehavior.js";
  3. describe("remoteConnectionEntryBehavior", () => {
  4. it("keeps sidebar open-workspace action on the project selector while a remote connection is active", () => {
  5. expect(
  6. resolveSidebarOpenWorkspaceAction({ remoteConnectionInProgress: true }),
  7. ).toBe("open-workspace");
  8. });
  9. it("keeps sidebar open-workspace action unchanged when no connection is active", () => {
  10. expect(
  11. resolveSidebarOpenWorkspaceAction({ remoteConnectionInProgress: false }),
  12. ).toBe("open-workspace");
  13. });
  14. });