UNPKG

react-chat-elements

Version:
14 lines (11 loc) 368 B
import React, { Component } from 'react' import { shallow } from 'enzyme' import toJson from 'enzyme-to-json' import ChatItem from '../ChatItem' describe('ChatItem component', () => { it('should render without issues', () => { const component = shallow(<ChatItem />) expect(component.length).toBe(1) expect(toJson(component)).toMatchSnapshot() }) })