import { describe, expect, it } from "vite-plus/test";
import { selectEnvironmentAxis, selectProjectAxis } from "./settingsScopeAxis";
describe("settings scope axes", () => {
it("drops a checkout narrowing from older links when either axis changes", () => {
const checkout = { project: "app", checkout: "app@first", machine: "first" };
expect(selectEnvironmentAxis(checkout, "second")).toEqual({
project: "app",
machine: "second",
});
expect(selectProjectAxis(checkout, "app")).toEqual({ project: "app", machine: "first" });
});
});