aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/__tests__/dates-test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/__tests__/dates-test.ts')
-rw-r--r--server/sonar-web/src/main/js/helpers/__tests__/dates-test.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/helpers/__tests__/dates-test.ts b/server/sonar-web/src/main/js/helpers/__tests__/dates-test.ts
index 92da301dd22..d4b606c8801 100644
--- a/server/sonar-web/src/main/js/helpers/__tests__/dates-test.ts
+++ b/server/sonar-web/src/main/js/helpers/__tests__/dates-test.ts
@@ -85,6 +85,8 @@ it('differenceInDays', () => {
it('differenceInSeconds', () => {
expect(dates.differenceInSeconds(recentDate, parseDate('2017-08-16T10:00:00.000Z'))).toBe(7200);
- expect(dates.differenceInSeconds(recentDate, parseDate('2017-08-16T12:00:00.500Z'))).toBe(0);
+ expect(dates.differenceInSeconds(recentDate, parseDate('2017-08-16T12:00:00.500Z'))).toBeCloseTo(
+ 0
+ );
expect(dates.differenceInSeconds(recentDate, oldDate)).toBe(113356800);
});