Skip to content

Commit 935095a

Browse files
Update tests/generate.spec.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 582a66b commit 935095a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/generate.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ describe('Generate:date-fns', () => {
339339
it('format and parse with AM/PM (uppercase A)', () => {
340340
const date = new Date(2000, 0, 1, 14, 30, 0);
341341

342-
// Format with uppercase A (moment-style) should produce lowercase am/pm output
342+
// Format with uppercase A (moment-style) should be normalized to date-fns `a`
343343
const formatted = dateFnsGenerateConfig.locale.format('en_US', date, 'YYYY-MM-DD hh:mm:ss A');
344344
expect(formatted).toEqual('2000-01-01 02:30:00 PM');
345345

0 commit comments

Comments
 (0)