import React from "react" ; import TestRenderer from "react-test-renderer" ; import { PropTypesOf } from "coral-ui/types" ; import Marker from "./Marker" ; it ( "renders correctly" , ( ) => { const props = { className : "custom" , color : "reported" , variant : "filled" , children : "Spam" , } ; const renderer = TestRenderer . create ( < Marker { ... props } > Hello < /Marker>); expect ( renderer . toJSON ( ) ) . toMatchSnapshot ( ) ; } ) ;