mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-16 18:39:51 +08:00
style(*): small fixes
This commit is contained in:
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) {
|
||||
|
||||
Reference in New Issue
Block a user