UNPKG

react-chat-elements

Version:
13 lines (12 loc) 480 B
import { jsx as _jsx } from "react/jsx-runtime"; import React, { Component } from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import MessageBox from '../MessageBox'; describe('MessageBox component', function () { it('should render without issues', function () { var component = shallow(_jsx(MessageBox, { status: 'read' })); expect(component.length).toBe(1); expect(toJson(component)).toMatchSnapshot(); }); });