From 00b69bef23c8e0d2c2e280d18210a7107be4e4f8 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Sat, 11 Apr 2015 12:17:32 -0300 Subject: [PATCH] fix indent --- test/mocks/stateMocks.js | 54 ++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/test/mocks/stateMocks.js b/test/mocks/stateMocks.js index 7c483b53d..5a71a5469 100644 --- a/test/mocks/stateMocks.js +++ b/test/mocks/stateMocks.js @@ -1,30 +1,30 @@ angular.module('stateMock',[]); angular.module('stateMock').service("$state", function($q){ - this.expectedTransitions = []; - this.transitionTo = function(stateName){ - if(this.expectedTransitions.length > 0){ - var expectedState = this.expectedTransitions.shift(); - if(expectedState !== stateName){ - throw Error("Expected transition to state: " + expectedState + " but transitioned to " + stateName ); - } - }else{ - throw Error("No more transitions were expected! Tried to transition to "+ stateName ); - } - console.log("Mock transition to: " + stateName); - var deferred = $q.defer(); - var promise = deferred.promise; - deferred.resolve(); - return promise; - } - this.go = this.transitionTo; - this.expectTransitionTo = function(stateName){ - this.expectedTransitions.push(stateName); - } - - - this.ensureAllTransitionsHappened = function(){ - if(this.expectedTransitions.length > 0){ - throw Error("Not all transitions happened!"); - } - } + this.expectedTransitions = []; + this.transitionTo = function(stateName){ + if(this.expectedTransitions.length > 0){ + var expectedState = this.expectedTransitions.shift(); + if(expectedState !== stateName){ + throw Error("Expected transition to state: " + expectedState + " but transitioned to " + stateName ); + } + }else{ + throw Error("No more transitions were expected! Tried to transition to "+ stateName ); + } + console.log("Mock transition to: " + stateName); + var deferred = $q.defer(); + var promise = deferred.promise; + deferred.resolve(); + return promise; + } + this.go = this.transitionTo; + this.expectTransitionTo = function(stateName){ + this.expectedTransitions.push(stateName); + } + + + this.ensureAllTransitionsHappened = function(){ + if(this.expectedTransitions.length > 0){ + throw Error("Not all transitions happened!"); + } + } });