Fix time duration and visuals
This commit is contained in:
@@ -43,7 +43,7 @@ describe('toLocalDatetimeInputValue', () => {
|
||||
describe('formatElapsedTime', () => {
|
||||
it('formats hours and minutes', () => {
|
||||
const twoHoursAgo = new Date(Date.now() - 2 * 60 * 60 * 1000).toISOString();
|
||||
expect(formatElapsedTime(twoHoursAgo)).toBe('2h');
|
||||
expect(formatElapsedTime(twoHoursAgo)).toBe('2h 0m');
|
||||
});
|
||||
|
||||
it('formats minutes only', () => {
|
||||
|
||||
Reference in New Issue
Block a user