title: What is the actual use of toContain() in expect?
body: <p>As we all know expect replaced with jest. Some property of expect also changes. One of them is toContain which was known as toInclude. You will find it here : <a href="https://github.com/skovhus/jest-codemods/blob/master/src/transformers/expect.js" rel="nofollow noreferrer">https://github.com/skovhus/jest-codemods/blob/master/src/transformers/expect.js</a></p>
  
  <p>My problem is when i am trying to use toContain in order to check whether a object match with another object,it showing me error. But earlier with toInclude it was just one line code. So as a replacement of toInclude I find it different,not exact the same.</p>
  
  <p>This array works fine.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>expect([2,3,4]).toContain(4);</code></pre>
  </div>
  </div>
  </p>
  
  <p>But when i go with object,this error come up</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> expect({
          name : 'Adil',
          age : 23
      }).toContain({
          age : 23
      });</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is the error </p>
  
  <pre><code>Error: expect(object).toContain(value)
  Expected object:
  
  {"age": 23, "name": "Adil"}
  To contain value:
  
  {"age": 23}
  </code></pre>