title: Jasmine Test case for Angular UI grid onRegisterApi funtion
body: <p>I'm writing Jasmine Unit test for AngularJS UI grid. 
  I have a below UI grid function in my controller 
  <strong>Code:</strong></p>
  
  <pre><code>$scope.gridOption.onRegisterApi = function(gridApi) {
  $scope.gridApi.core.on.sortChanged($scope, function(grid, sortColumns) {};
  gridApi.pagination.on.paginationChanged($scope, function(newPage, pageSize) {};
  };
  </code></pre>
  
  <p>I dont know how to write Unit test case for this function &amp; internal private funtions....</p>
  
  <p>Any one can help me on this?</p>
  
  <p>Thanks in Advance!!!</p>