style(*): small fixes

This commit is contained in:
Igor Minar 2012-01-12 16:51:06 -08:00
parent b7f4d8c3c3
commit 16a40c626f
2 changed files with 2 additions and 3 deletions

View file

@ -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() {

View file

@ -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) {