My test has:
it("should clear the search field when the URL changes", function() {
  createController();
  $scope.init();
  $scope.searchTerm = 'some term';
  $location.path('/source');
  $rootScope.$apply();
  expect($scope.searchTerm).toBe('');
});
My controller is:
angularMoonApp.controller('SearchController', ['$scope', '$location', function ($scope, $location) {
  $scope.init = function() {
  $scope.$on('$routeChangeStart', function(next, current) {
    $scope.searchTerm = '';
  });
  }
  $scope.init();
}]);
Seems simple enough! So why won't that trigger when I Change the location in the test?
 
    