cooking/lib/format.test.ts
Olomana (multica agent) c58e09db1d PWS-15: Capitalize tags for display
Tags render with their first letter uppercased on the recipe page, grid
cards, sidebar facet, and active-filter chips, matching categories. The
shared capitalize helper moves to lib/format.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-12 15:48:30 -08:00

11 lines
361 B
TypeScript

import assert from 'node:assert/strict';
import { test } from 'node:test';
import { capitalize } from './format';
test('capitalize uppercases the first letter only', () => {
assert.equal(capitalize('italian'), 'Italian');
assert.equal(capitalize('ice cream'), 'Ice cream');
assert.equal(capitalize('BBQ'), 'BBQ');
assert.equal(capitalize(''), '');
});