diff --git a/src/core/Env.js b/src/core/Env.js index 63d86365..52bdd4d8 100644 --- a/src/core/Env.js +++ b/src/core/Env.js @@ -210,9 +210,13 @@ getJasmineRequireObj().Env = function(j$) { this.setDefaultSpyStrategy = function(defaultStrategyFn) { if (!currentRunnable()) { - throw new Error('Default spy strategy must be set in a before function or a spec'); + throw new Error( + 'Default spy strategy must be set in a before function or a spec' + ); } - runnableResources[currentRunnable().id].defaultStrategyFn = defaultStrategyFn; + runnableResources[ + currentRunnable().id + ].defaultStrategyFn = defaultStrategyFn; }; this.addSpyStrategy = function(name, fn) { @@ -304,7 +308,8 @@ getJasmineRequireObj().Env = function(j$) { resources.customMatchers = j$.util.clone( runnableResources[parentRunnableId].customMatchers ); - resources.defaultStrategyFn = runnableResources[parentRunnableId].defaultStrategyFn; + resources.defaultStrategyFn = + runnableResources[parentRunnableId].defaultStrategyFn; } runnableResources[id] = resources; diff --git a/src/core/Spy.js b/src/core/Spy.js index 42de6035..86d44b07 100644 --- a/src/core/Spy.js +++ b/src/core/Spy.js @@ -12,7 +12,13 @@ getJasmineRequireObj().Spy = function(j$) { * @constructor * @name Spy */ - function Spy(name, originalFn, customStrategies, defaultStrategyFn, getPromise) { + function Spy( + name, + originalFn, + customStrategies, + defaultStrategyFn, + getPromise + ) { var numArgs = typeof originalFn === 'function' ? originalFn.length : 0, wrapper = makeFunc(numArgs, function() { return spy.apply(this, Array.prototype.slice.call(arguments)); diff --git a/src/core/SpyFactory.js b/src/core/SpyFactory.js index 984573c0..21a5d465 100644 --- a/src/core/SpyFactory.js +++ b/src/core/SpyFactory.js @@ -3,7 +3,13 @@ getJasmineRequireObj().SpyFactory = function(j$) { var self = this; this.createSpy = function(name, originalFn) { - return j$.Spy(name, originalFn, getCustomStrategies(), getDefaultStrategyFn(), getPromise); + return j$.Spy( + name, + originalFn, + getCustomStrategies(), + getDefaultStrategyFn(), + getPromise + ); }; this.createSpyObj = function(baseName, methodNames) {