mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-19 03:51:07 +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() {
|
window.module = angular.mock.module = function() {
|
||||||
var moduleFns = Array.prototype.slice.call(arguments, 0);
|
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;
|
return isSpecRunning() ? workFn() : workFn;
|
||||||
/////////////////////
|
/////////////////////
|
||||||
function workFn() {
|
function workFn() {
|
||||||
|
|
@ -1560,7 +1560,7 @@ window.jasmine && (function(window) {
|
||||||
*/
|
*/
|
||||||
window.inject = angular.mock.inject = function() {
|
window.inject = angular.mock.inject = function() {
|
||||||
var blockFns = Array.prototype.slice.call(arguments, 0);
|
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;
|
return isSpecRunning() ? workFn() : workFn;
|
||||||
/////////////////////
|
/////////////////////
|
||||||
function workFn() {
|
function workFn() {
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@ describe('$http', function() {
|
||||||
|
|
||||||
|
|
||||||
it('should pass the responses through interceptors', function() {
|
it('should pass the responses through interceptors', function() {
|
||||||
var shared = {};
|
|
||||||
module(function($httpProvider, $provide) {
|
module(function($httpProvider, $provide) {
|
||||||
$provide.factory('testInterceptor', function ($q) {
|
$provide.factory('testInterceptor', function ($q) {
|
||||||
return function(httpPromise) {
|
return function(httpPromise) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue