Summary
formatJoinDate formats member join dates on profile. Add edge-case tests to prevent regressions.
What should change?
- Extend test/FormatDate.ts with cases for:
- Valid ISO string
- Invalid date string (returns original input)
- Empty string
- ISO with timezone
Acceptance criteria
At least 4 test cases added,
Tests pass locally,
Tests follow existing test file style,
Checklist of done conditions:
How to test
Run tests locally:
node --test test/FormatDate.ts
Summary
formatJoinDate formats member join dates on profile. Add edge-case tests to prevent regressions.
What should change?
Acceptance criteria
At least 4 test cases added,
Tests pass locally,
Tests follow existing test file style,
Checklist of done conditions:
How to test
Run tests locally:
node --test test/FormatDate.ts