title: Angular unit test for bootstrap pop-up
body: <p>I want to write the angular unit test unit test for the following function, </p>
  
  <pre><code>$scope.addDataList = function () {
      $scope.IsDefault = false;
      $scope.IsPATsDefault = false;
      $('#plAddEditCopy').modal('show');
  }
  </code></pre>
  
  <p>The <code>addDataList</code> opens the bootstrap popup. How do I use <code>SpyOn</code> on the third line of the function <code>$('#plAddEditCopy').modal('show')</code>?</p>