fix: Time specs (#6841)
This commit is contained in:
@@ -11,9 +11,8 @@ describe('#messageStamp', () => {
|
|||||||
|
|
||||||
describe('#messageTimestamp', () => {
|
describe('#messageTimestamp', () => {
|
||||||
it('should return the message date in the specified format if the message was sent in the current year', () => {
|
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(1680777464)).toEqual(
|
||||||
expect(TimeMixin.methods.messageTimestamp(now.getTime() / 1000)).toEqual(
|
'Apr 6, 2023'
|
||||||
'Apr 5, 2023'
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
it('should return the message date and time in a different format if the message was sent in a different year', () => {
|
it('should return the message date and time in a different format if the message was sent in a different year', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user