mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
fix: Time specs (#6841)
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user