cfc56705fd
* [Enhancement] Group widget messages by date * Update DateSeparator snapshot
13 lines
391 B
JavaScript
13 lines
391 B
JavaScript
import DateSeparator from '../DateSeparator';
|
|
|
|
describe('#DateSeparator', () => {
|
|
it('should format correctly without dateFormat', () => {
|
|
expect(new DateSeparator(1576340626).format()).toEqual('Dec 14, 2019');
|
|
});
|
|
|
|
it('should format correctly without dateFormat', () => {
|
|
expect(new DateSeparator(1576340626).format('DD-MM-YYYY')).toEqual(
|
|
'14-12-2019'
|
|
);
|
|
});
|
|
});
|