title: How to check for object properties match for an object using Jest?
body: <p>I have the following code, that when called it returned an object. I want to write a test case that checks if the object has the tree property named accordingly and their value is number, array and bool.</p>
  <p>Could you please provide an example using the Jest library?</p>
  <pre class="lang-js prettyprint-override"><code>const location = () =&gt; {
    return {
      locationId: 5128581, // nyc usa
      geo: [-74.006, 40.7143],
      isFetching: false
    }
  }
  
  export default location
  </code></pre>