From c30807d1413ea9942bcb065a02997082bf4291aa Mon Sep 17 00:00:00 2001 From: Shyam Seshadri Date: Thu, 7 Oct 2010 09:31:19 -0700 Subject: Change angular-mocks to throw errors on unexpected gets in the format JSTD now expects --- test/angular-mocks.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') 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); -- cgit v1.2.3