Cleanup: unused vars, dangling commas, negation

This commit is contained in:
Elliot Nelson
2019-05-18 08:11:47 -04:00
parent 1e855aa9b8
commit b1da6e3960
9 changed files with 10 additions and 32 deletions
+4 -7
View File
@@ -255,7 +255,7 @@ getJasmineRequireObj().Env = function(j$) {
var defaultResourcesForRunnable = function(id, parentRunnableId) {
var resources = {spies: [], customEqualityTesters: [], customMatchers: {}, customSpyStrategies: {}};
if(runnableResources[parentRunnableId]){
if(runnableResources[parentRunnableId]) {
resources.customEqualityTesters = j$.util.clone(runnableResources[parentRunnableId].customEqualityTesters);
resources.customMatchers = j$.util.clone(runnableResources[parentRunnableId].customMatchers);
}
@@ -307,9 +307,6 @@ getJasmineRequireObj().Env = function(j$) {
return buildExpectationResult(attrs);
};
var maximumSpecCallbackDepth = 20;
var currentSpecCallbackDepth = 0;
/**
* Sets whether Jasmine should throw an Error when an expectation fails.
* This causes a spec to only have one expectation failure.
@@ -666,7 +663,7 @@ getJasmineRequireObj().Env = function(j$) {
}
});
this.allowRespy = function(allow){
this.allowRespy = function(allow) {
spyRegistry.allowRespy(allow);
};
@@ -830,7 +827,7 @@ getJasmineRequireObj().Env = function(j$) {
timeout: timeout || 0
},
throwOnExpectationFailure: config.oneFailurePerSpec,
timer: new j$.Timer(),
timer: new j$.Timer()
});
return spec;
@@ -879,7 +876,7 @@ getJasmineRequireObj().Env = function(j$) {
return spec;
};
this.fit = function(description, fn, timeout){
this.fit = function(description, fn, timeout) {
ensureIsNotNested('fit');
ensureIsFunctionOrAsync(fn, 'fit');
var spec = specFactory(description, fn, currentDeclarationSuite, timeout);