I want to write the angular unit test unit test for the following function,
$scope.addDataList = function () {
    $scope.IsDefault = false;
    $scope.IsPATsDefault = false;
    $('#plAddEditCopy').modal('show');
}
The addDataList opens the bootstrap popup. How do I use SpyOn on the third line of the function $('#plAddEditCopy').modal('show')?
 
     
    