Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

git-overview-navigation.test.ts

13 lines532 Bytes

1import { describe, expect, it } from "vite-plus/test";
2​
3import { resolveGitOverviewReviewNavigationAction } from "./git-overview-navigation";
4​
5describe("resolveGitOverviewReviewNavigationAction", () => {
6 it("replaces the sheet so Back returns directly to the thread", () => {
7 expect(resolveGitOverviewReviewNavigationAction("sheet")).toBe("replace");
8 });
9​
10 it("pushes Review normally when Git is a persistent inspector", () => {
11 expect(resolveGitOverviewReviewNavigationAction("inspector")).toBe("navigate");
12 });
13});