summaryrefslogtreecommitdiffhomepage
path: root/gui/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'gui/test/unit')
-rw-r--r--gui/test/unit/date-helper.spec.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/test/unit/date-helper.spec.ts b/gui/test/unit/date-helper.spec.ts
index 5ed0cfa6da..5f44c53a2d 100644
--- a/gui/test/unit/date-helper.spec.ts
+++ b/gui/test/unit/date-helper.spec.ts
@@ -151,6 +151,7 @@ describe('Date helper', () => {
});
it('should format time left correctly', () => {
+ expect(date.formatTimeLeft('2022-09-01', '2022-09-01')).to.equal('less than a day left');
expect(date.formatTimeLeft('2022-09-01', '2022-09-02')).to.equal('1 day left');
expect(date.formatTimeLeft('2022-09-01', '2022-09-05')).to.equal('4 days left');
expect(date.formatTimeLeft('2022-09-01', '2022-09-30')).to.equal('29 days left');