Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions apps/mobile/src/features/terminal/terminalMenu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { getTerminalLabel } from "@t3tools/shared/terminalLabels";
import {
buildTerminalMenuSessions,
nextOpenTerminalId,
nextTerminalId,
previousLiveTerminalId,
resolveProjectScriptTerminalId,
type TerminalMenuSession,
Expand Down Expand Up @@ -125,16 +124,6 @@ describe("buildTerminalMenuSessions", () => {
});
});

describe("nextTerminalId", () => {
it("uses the primary id when no terminals are listed yet", () => {
expect(nextTerminalId([])).toBe(DEFAULT_TERMINAL_ID);
});

it("allocates term-2 when only the primary shell exists", () => {
expect(nextTerminalId([DEFAULT_TERMINAL_ID])).toBe("term-2");
});
});

describe("nextOpenTerminalId", () => {
it("matches nextTerminalId when not on a terminal route", () => {
expect(nextOpenTerminalId({ listedTerminalIds: [] })).toBe(DEFAULT_TERMINAL_ID);
Expand Down
16 changes: 0 additions & 16 deletions apps/web/src/orchestrationRecovery.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,22 +120,6 @@ describe("createOrchestrationRecoveryCoordinator", () => {
});
});

it("keeps enough state to explain why bootstrap snapshot recovery requests replay", () => {
const coordinator = createOrchestrationRecoveryCoordinator();

expect(coordinator.beginSnapshotRecovery("bootstrap")).toBe(true);
expect(coordinator.classifyDomainEvent(4)).toBe("defer");
expect(coordinator.completeSnapshotRecovery(2)).toBe(true);

expect(coordinator.getState()).toMatchObject({
latestSequence: 2,
highestObservedSequence: 4,
bootstrapped: true,
pendingReplay: false,
inFlight: null,
});
});

it("reports skip state when snapshot recovery is requested while replay is in flight", () => {
const coordinator = createOrchestrationRecoveryCoordinator();

Expand Down
Loading