Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

867 B
Raw Blame
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",
    });
  });
});