fix: Time specs (#6841)

This commit is contained in:
Sivin Varghese
2023-04-06 16:33:31 +05:30
committed by GitHub
parent ab6276327a
commit be2356724e

View File

@@ -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', () => {