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.

712 B
Raw Blame
import { fireEvent, render, screen } from "@testing-library/react";
import { describe, expect, it } from "vitest";
import { LocaleSearchList } from "@/components/LocalePicker";

describe("<LocaleSearchList>", () => {
  it("links to GitHub feedback when no locale matches the search", async () => {
    render(<LocaleSearchList value="en" onChange={() => {}} />);

    fireEvent.change(await screen.findByRole("textbox", { name: "Language" }), { target: { value: "klingon" } });

    const feedbackLink = screen.getByRole("link", { name: "Language not found? Submit feedback" });
    expect(feedbackLink).toHaveAttribute("href", expect.stringContaining("https://github.com/usememos/memos/issues/new"));
  });
});