title: How to test with the reselect createSelector function in jest?
body: <p>Hello I'm trying to test the <code>createSelector</code> function in <code>jest</code> but I'm stuck. So the problem is that never enters in the <code>if</code> of the function <code>getContent</code> and I need to enter, for the coverage.</p>
  
  <p>File
  <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>export const selectDetailsObject = createSelector(
      [
          (state) =&gt; state.objectId,
          (state) =&gt; state.objects,
      ],
      (
          objectId,
          objects,
      ) =&gt; getContent(objectId, objects)
  )
  
  function getContent (objectId, objects) {
      const result = {}
      if (objectId &amp;&amp; objectId !== '') {
          result.objectId = objectId
          result.objectInfo = objects[objectId]
          result.objectDetails = objectDetails[objectId]
      }
      return result
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Testing file</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>const mockStore = () =&gt; ({
      objectId: '123',
      objects: {},
  })
  
  test('should select the content of the table', () =&gt; {
      const result = selectDetailsObject(mockStore)
      expect(result.objects).toBe()
  })</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any suggestions?</p>