Refine workspaces and event publishing; harden uploads and email delivery

This commit is contained in:
2026-09-09 15:44:00 -04:00
parent f5702caaea
commit 574f29a68e
93 changed files with 2885 additions and 535 deletions
+6
View File
@@ -1,7 +1,13 @@
import { describe, expect, test } from "bun:test";
import { slugify } from "./slug";
import { eventSlugSchema } from "@album/contracts";
describe("slugify", () => {
test("keeps long generated slugs valid when truncation lands on a hyphen", () => {
const slug = slugify(`${"a".repeat(63)} next word`);
expect(slug).toBe("a".repeat(63));
expect(eventSlugSchema.safeParse(slug).success).toBe(true);
});
test("lowercases and hyphenates titles", () => {
expect(slugify("Summer Block Party")).toBe("summer-block-party");
});