How to set object type props value in an enzyme for a react component?
<p>I tried two ways,</p>

<p>1.</p>

<pre><code>const wrapper=shallow(&lt;ActiveConversation /&gt;)
wrapper.setProps({activeConversation:c,agent:a});
expect(wrapper.prop('messagesList')).to.equal(messagesList);
</code></pre>

<p>2.</p>

<pre><code>const wrapper=shallow(&lt;ActiveConversation messagesList={messagesList}
       agent={agent} contactFormState={d} tagSuggestions={t}/&gt;);
</code></pre>

<p>But still both props goes on undefined</p>