From eeb6abbed6a85ebcf38b6afb34e1e69a85e6576a Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Tue, 17 Dec 2024 14:48:28 +0700 Subject: [PATCH] Update security-monitor.component.spec.ts --- .../modules/security-monitor/security-monitor.component.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marketplace-ui/src/app/modules/security-monitor/security-monitor.component.spec.ts b/marketplace-ui/src/app/modules/security-monitor/security-monitor.component.spec.ts index 38243842..cfb5b22d 100644 --- a/marketplace-ui/src/app/modules/security-monitor/security-monitor.component.spec.ts +++ b/marketplace-ui/src/app/modules/security-monitor/security-monitor.component.spec.ts @@ -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'); });