Open History to see the last commit
1import { describe, expect, it } from "vite-plus/test";
2
3import { githubHeadingSlug } from "./markdownFragments";
4
5describe("githubHeadingSlug", () => {
6 it.each([
7 ["Area of r²", "area-of-r"],
8 ["Ⓜ\uFE0F Metro", "ⓜ\uFE0F-metro"],
9 ["می\u200Cخواهم", "می\u200Cخواهم"],
10 ])("slugs %j like GitHub", (heading, expected) => {
11 expect(githubHeadingSlug(heading)).toBe(expected);
12 });
13});