diff --git a/app/javascript/dashboard/mixins/specs/time.spec.js b/app/javascript/dashboard/mixins/specs/time.spec.js index 4df849efc..56b70ec8a 100644 --- a/app/javascript/dashboard/mixins/specs/time.spec.js +++ b/app/javascript/dashboard/mixins/specs/time.spec.js @@ -11,9 +11,8 @@ describe('#messageStamp', () => { describe('#messageTimestamp', () => { it('should return the message date in the specified format if the message was sent in the current year', () => { - const now = new Date(); - expect(TimeMixin.methods.messageTimestamp(now.getTime() / 1000)).toEqual( - 'Apr 5, 2023' + expect(TimeMixin.methods.messageTimestamp(1680777464)).toEqual( + 'Apr 6, 2023' ); }); it('should return the message date and time in a different format if the message was sent in a different year', () => {