Open History to see the last commit
1import { describe, expect, it } from "vite-plus/test";
2
3import { selectEnvironmentAxis, selectProjectAxis } from "./settingsScopeAxis";
4
5describe("settings scope axes", () => {
6 it("drops a checkout narrowing from older links when either axis changes", () => {
7 const checkout = { project: "app", checkout: "app@first", machine: "first" };
8 expect(selectEnvironmentAxis(checkout, "second")).toEqual({
9 project: "app",
10 machine: "second",
11 });
12 expect(selectProjectAxis(checkout, "app")).toEqual({ project: "app", machine: "first" });
13 });
14});