UNPKG

react-chat-elements

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