Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ThreadLinkPicker.logic.test.ts

12 lines401 Bytes

1import { expect, it } from "vite-plus/test";
2​
3import { threadLinkMatcher } from "./ThreadLinkPicker.logic";
4​
5it.each([
6 ["cafe", "Café planning", undefined],
7 ["café", "Café planning", undefined],
8 ["ışık", "Işık planı", "tr-TR"],
9 ["ΒΑΣ", "ΒΑΣΗ", undefined],
10])("matches %s against %s", (query, text, locale) => {
11 expect(threadLinkMatcher(query, locale)(text)).toBe(true);
12});