diff options
| -rw-r--r-- | test/angular-mocks.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/angular-mocks.js b/test/angular-mocks.js index 7444e816..a8f189cb 100644 --- a/test/angular-mocks.js +++ b/test/angular-mocks.js @@ -75,7 +75,10 @@ function MockBrowser() { var expect = expectations[method] || {}; var response = expect[url]; if (!response) { - throw "Unexepected request for method '" + method + "' and url '" + url + "'."; + throw { + message: "Unexpected request for method '" + method + "' and url '" + url + "'.", + name: "Unexpected Request" + }; } requests.push(function(){ callback(response.code, response.response); |
