mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 12:37:56 +00:00
14 lines
391 B
JavaScript
14 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'
|
|
);
|
|
});
|
|
});
|