Skip to content

Commit 159efdd

Browse files
andriivandakurovNarretz
authored andcommitted
docs($httpBackend): fix typo/mismatch
There is an mismatch for status in controller and test. In controller $scope.status = 'ERROR!' and in test we expect($rootScope.status).toBe('Failed...') so the test will fail; Closes angular#12834
1 parent 4755a35 commit 159efdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngMock/angular-mocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ angular.mock.dump = function(object) {
10231023
$http.post('/add-msg.py', message, { headers: headers } ).success(function(response) {
10241024
$scope.status = '';
10251025
}).error(function() {
1026-
$scope.status = 'ERROR!';
1026+
$scope.status = 'Failed...';
10271027
});
10281028
};
10291029
}

0 commit comments

Comments
 (0)