memos/web/tests/space-settings-shell.test.ts
amblued 9d2b77ced8 feat(space): add client-defined UIDs and identity cues
- Generate UUID v4 values in the client with validated custom UID
  support.\n- Show immutable UIDs where Space titles need
  disambiguation.\n- Standardize Space surfaces on the Lucide Astroid
  icon.
2026-08-28 00:33:09 +08:00

23 lines
867 B
TypeScript

import { AstroidIcon } from "lucide-react";
import { describe, expect, it } from "vitest";
import { isSettingSectionKey, SETTINGS_SECTIONS } from "@/components/Settings/settingSections";
import enTranslation from "@/locales/en.json";
describe("Spaces settings shell", () => {
it("registers Spaces as a basic settings section", () => {
expect(isSettingSectionKey("spaces")).toBe(true);
expect(SETTINGS_SECTIONS.find((section) => section.key === "spaces")).toMatchObject({
scope: "basic",
labelKey: "setting.spaces.label",
icon: AstroidIcon,
});
});
it("defines the English settings copy used as the locale fallback", () => {
expect(enTranslation.setting.spaces).toMatchObject({
description: "View spaces you belong to and manage members and invitations.",
label: "Spaces",
title: "Spaces",
});
});
});