Initial commit of Vellum, an event photo product for guest uploads, host moderation, and original-quality galleries.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import { slugify } from "./slug";
|
||||
|
||||
describe("slugify", () => {
|
||||
test("lowercases and hyphenates titles", () => {
|
||||
expect(slugify("Maya & Jonah Wedding")).toBe("maya-jonah-wedding");
|
||||
});
|
||||
|
||||
test("falls back when the title has no letters", () => {
|
||||
expect(slugify("!!!").startsWith("event-")).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user