Skip to content

Commit 1e691bf

Browse files
committed
fixed tests
1 parent 4a67ee6 commit 1e691bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app-components/TimePicker/utils/timeFormatUtils.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('Time Format Utilities', () => {
1717
it('should format 12-hour time correctly', () => {
1818
const time: TimeValue = { hours: 14, minutes: 30, seconds: 0, period: 'PM' };
1919
const result = formatTimeValue(time, 'hh:mm a');
20-
expect(result).toBe('2:30 PM');
20+
expect(result).toBe('02:30 PM');
2121
});
2222

2323
it('should format time with seconds', () => {
@@ -196,8 +196,8 @@ describe('Time Format Utilities', () => {
196196

197197
expect(formatTimeValue(time, 'HH:mm')).toBe('09:05');
198198
expect(formatTimeValue(time, 'HH:mm:ss')).toBe('09:05:03');
199-
expect(formatTimeValue(time, 'hh:mm a')).toBe('9:05 AM');
200-
expect(formatTimeValue(time, 'hh:mm:ss a')).toBe('9:05:03 AM');
199+
expect(formatTimeValue(time, 'hh:mm a')).toBe('09:05 AM');
200+
expect(formatTimeValue(time, 'hh:mm:ss a')).toBe('09:05:03 AM');
201201
});
202202

203203
it('should handle hour conversion edge cases', () => {

0 commit comments

Comments
 (0)