UNPKG

react-chat-elements

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