mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
style(*): small fixes
This commit is contained in:
parent
b7f4d8c3c3
commit
16a40c626f
2 changed files with 2 additions and 3 deletions
4
src/angular-mocks.js
vendored
4
src/angular-mocks.js
vendored
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue