aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/angular-mocks.js4
-rw-r--r--test/service/httpSpec.js1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/angular-mocks.js b/src/angular-mocks.js
index dfa43d7d..3c74cf9b 100644
--- a/src/angular-mocks.js
+++ b/src/angular-mocks.js
@@ -1490,7 +1490,7 @@ window.jasmine && (function(window) {
*/
window.module = angular.mock.module = function() {
var moduleFns = Array.prototype.slice.call(arguments, 0);
- var stack = Error('Declaration Location').stack;
+ var stack = new Error('Module Declaration Location:').stack;
return isSpecRunning() ? workFn() : workFn;
/////////////////////
function workFn() {
@@ -1560,7 +1560,7 @@ window.jasmine && (function(window) {
*/
window.inject = angular.mock.inject = function() {
var blockFns = Array.prototype.slice.call(arguments, 0);
- var stack = Error('Declaration Location').stack;
+ var stack = new Error('Declaration Location').stack;
return isSpecRunning() ? workFn() : workFn;
/////////////////////
function workFn() {
diff --git a/test/service/httpSpec.js b/test/service/httpSpec.js
index 766238d8..ad376b5f 100644
--- a/test/service/httpSpec.js
+++ b/test/service/httpSpec.js
@@ -34,7 +34,6 @@ describe('$http', function() {
it('should pass the responses through interceptors', function() {
- var shared = {};
module(function($httpProvider, $provide) {
$provide.factory('testInterceptor', function ($q) {
return function(httpPromise) {