import React from "react" ; import { createRenderer } from "react-test-renderer/shallow" ; import { removeFragmentRefs } from "coral-framework/testHelpers" ; import { PropTypesOf } from "coral-framework/types" ; import Moderate from "./Moderate" ; const ModerateN = removeFragmentRefs ( Moderate ) ; it ( "renders correctly" , ( ) => { const props = { allStories : true , moderationQueues : { } , story : { } , viewer : null , siteID : null , query : "" , routeParams : { } , queueName : undefined , settings : { multisite : false , } , } ; const renderer = createRenderer ( ) ; renderer . render ( < ModerateN { ... props } / > ) ; expect ( renderer . getRenderOutput ( ) ) . toMatchSnapshot ( ) ; } ) ;