title: expected spyOn function to be called Jest
body: <p>im currently trying to test the methods that i have created and the methods in my if statement are not being called. and im completely at a loss. I am new too jest though so im sure its something simple im missing. </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-html lang-html prettyprint-override"><code> describe('isSingleScreen', () =&gt; {
      beforeEach(() =&gt; {
        jest.clearAllMocks();
        jest.spyOn(utilMethods, 'isDualScreen').mockReturnValue(true);
      });
  
      it('autoScreenAdd', () =&gt; {
        // Arrange
        const singleScreenAddSpy = jest.spyOn(
          singleScreenMethods,
          'singleScreenAdd'
        );
        const dualScreenAddSpy = jest.spyOn(dualScreenMethods, 'dualScreenAdd');
  
        // Act
        utilMethods.autoScreenAdd({});
  
        // Assert
        expect(singleScreenAddSpy).toBeCalledTimes(0);
        expect(dualScreenAddSpy).toBeCalled();
        expect(dualScreenAddSpy).toBeCalledTimes(1);
      });
    });</code></pre>
  </div>
  </div>
  </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-html lang-html prettyprint-override"><code>export const isDualScreen = (): boolean =&gt; {
    return Dimensions.get('window').width &gt; 1000 ? true : false;
  };
  
  export const autoScreenAdd = (element: IDualComponent) =&gt; {
    if (isDualScreen()) {
      dualScreenAdd(element);
    } else {
      singleScreenAdd(element);
    }
  };</code></pre>
  </div>
  </div>
  </p>
  
  <p>this is the error i receive </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-html lang-html prettyprint-override"><code>    expect(jest.fn()).toBeCalledTimes(expected)
  
      Expected number of calls: 0
      Received number of calls: 1
  
        30 |       // Assert
        31 |       expect(autoScreenAddSpy).toBeCalled();
      &gt; 32 |       expect(singleScreenAddSpy).toBeCalledTimes(0);
           |                                  ^
        33 |       expect(dualScreenAddSpy).toBeCalled();
        34 |       expect(dualScreenAddSpy).toBeCalledTimes(1);
        35 |     });</code></pre>
  </div>
  </div>
  </p>