feat: Show date along with time in messages (#1748)

This commit is contained in:
Pranav Raj S
2021-02-11 12:10:08 +05:30
committed by GitHub
parent a880845d2b
commit d92a6a3078
5 changed files with 17 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
import TimeMixin from '../time';
describe('#messageStamp', () => {
it('returns correct value', () => {
expect(TimeMixin.methods.messageStamp(1612971343)).toEqual('3:35 PM');
expect(TimeMixin.methods.messageStamp(1612971343, 'LLL d, h:mm a')).toEqual(
'Feb 10, 3:35 PM'
);
});
});