mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fixing broken angular-mocks.js
This commit is contained in:
parent
a0af13f672
commit
dfba8fb2e7
1 changed files with 1 additions and 1 deletions
2
src/angular-mocks.js
vendored
2
src/angular-mocks.js
vendored
|
|
@ -111,7 +111,7 @@ function MockBrowser() {
|
|||
throw new Error("Unexpected request for method '" + method + "' and url '" + url + "'.");
|
||||
}
|
||||
requests.push(function(){
|
||||
forEach(expectation.headers, function(value, key){
|
||||
angular.forEach(expectation.headers, function(value, key){
|
||||
if (headers[key] !== value) {
|
||||
throw new Error("Missing HTTP request header: " + key + ": " + value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue