import { noop } from "lodash" ; import React from "react" ; import { createRenderer } from "react-test-renderer/shallow" ; import { PropTypesOf } from "coral-framework/types" ; import RejectedComment from "./RejectedComment" ; it ( "renders correctly" , ( ) => { const props = { href : "#" , username : "InTheExpensiveSeats" , date : "2018-07-06T18:24:00.000Z" , onGotoComment : noop , } ; const renderer = createRenderer ( ) ; renderer . render ( < RejectedComment { ... props } / > ) ; expect ( renderer . getRenderOutput ( ) ) . toMatchSnapshot ( ) ; } ) ;