From 36a192f366e255223cb52f9d3bffd09e449e118d Mon Sep 17 00:00:00 2001 From: alisonmyers Date: Mon, 23 Sep 2024 12:14:13 -0700 Subject: [PATCH] fix comments --- util.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.test.js b/util.test.js index a9b07b9..88fa266 100644 --- a/util.test.js +++ b/util.test.js @@ -85,14 +85,14 @@ describe('Utils Functions', () => { it('should return 1 if the relativeDate is the next day any time', () => { const referenceTimestamp = '2024-06-22T00:23:54Z' - const relativeTimestamp = '2024-06-23T12:23:54Z' // Same date and time + const relativeTimestamp = '2024-06-23T12:23:54Z' // one day expect(getDateDiff(referenceTimestamp, relativeTimestamp)).toBe(1) }) it('should return 10 if the relativeDate is 10 days later', () => { const referenceTimestamp = '2024-06-10T00:23:54Z' - const relativeTimestamp = '2024-06-20T12:23:54Z' // Same date and time + const relativeTimestamp = '2024-06-20T12:23:54Z' // 10 days expect(getDateDiff(referenceTimestamp, relativeTimestamp)).toBe(10) })