title: How to unit test / mock a $timeout call?
body: <p>How do I mock the timeout call, here?</p>
  
  <pre><code>$scope.submitRequest = function () {
  
      var formData = getData();
  
      $scope.form = JSON.parse(formData);
  
      $timeout(function () {
          $('#submitForm').click();            
      }, 2000);
  
  };
  </code></pre>
  
  <p>I want to see timeout has been called with the correct function.</p>
  
  <p>I would like an example of the spyon function mocking $timeout.</p>
  
  <pre><code>spyOn(someObject,'$timeout')
  </code></pre>