react-native-gifted-chat-video-support
Version:
The most complete chat UI for React Native , now support send video thanks to react-native-video-player
12 lines (9 loc) • 326 B
JavaScript
import { isSameDay, isSameUser } from '../utils';
it('should test if same day', () => {
const now = new Date();
expect(isSameDay({ createdAt: now }, { createdAt: now })).toBe(true);
});
it('should test if same user', () => {
const message = { user: { _id: 1 } };
expect(isSameUser(message, message)).toBe(true);
});