Skip to content

Commit

Permalink
Update security-monitor.component.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkhanh-axonivy committed Dec 17, 2024
1 parent 90a1f61 commit eeb6abb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe('SecurityMonitorComponent', () => {

it('should return "1 minute ago" for dates 1 minute ago', () => {
const oneMinuteAgo = new Date(new Date().getTime() - 60 * 1000).toISOString();
TIME_UNITS[0] = { SECONDS: 3600, SINGULAR: 'minute', PLURAL: 'minutes' };
TIME_UNITS[0] = { SECONDS: 60, SINGULAR: 'minute', PLURAL: 'minutes' };
const result = component.formatCommitDate(oneMinuteAgo);
expect(result).toBe('1 minute ago');
});
Expand Down

0 comments on commit eeb6abb

Please sign in to comment.