I\'ve just recently started writing something with AngularJS and I\'m not sure how to go about writing a test for this particular thing. I\'m building a \"Help Request\" mode th
In your unit tests you need to manually call $scope.$digest() or $scope.$apply() to trigger $scope.$watch().
$scope.$digest()
$scope.$apply()
$scope.$watch()
Normally in your code you wouldn't have to do this, since directives like ng-click do $rootScope.$apply for you behind the scenes.
ng-click
$rootScope.$apply