- 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.
23 lines
867 B
TypeScript
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",
|
|
});
|
|
});
|
|
});
|