Skip to content

Commit

Permalink
fix: Time specs (#6841)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsivin authored Apr 6, 2023
1 parent ab62763 commit be23567
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/javascript/dashboard/mixins/specs/time.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit be23567

Please sign in to comment.