UNPKG

react-chat-elements

Version:
13 lines (12 loc) 468 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 FileMessage from '../FileMessage'; describe('FileMessage component', function () { it('should render without issues', function () { var component = shallow(_jsx(FileMessage, {})); expect(component.length).toBe(1); expect(toJson(component)).toMatchSnapshot(); }); });