[Build] Remove unused variables from specs

...to satisfy JSHint.
This commit is contained in:
Victor Woeltjen
2016-03-04 12:56:14 -08:00
parent e470451718
commit d6ec7e9ab8
48 changed files with 50 additions and 142 deletions

View File

@@ -32,8 +32,7 @@ define(
var testContext,
testModel,
testId,
mockLocationCapability,
mockContextCapability;
mockLocationCapability;
beforeEach(function () {
testId = "some-id";

View File

@@ -124,10 +124,8 @@ define(
var mockQ,
mockDeferred,
creationService,
createObjectPromise,
copyService,
mockNow,
object,
newParent,
copyResult,
@@ -172,7 +170,7 @@ define(
'mockDeferred',
['notify', 'resolve', 'reject']
);
mockDeferred.notify.andCallFake(function(notification){});
mockDeferred.notify.andCallFake(function(){});
mockDeferred.resolve.andCallFake(function(value){resolvedValue = value;});
mockDeferred.promise = {
then: function(callback){
@@ -271,8 +269,7 @@ define(
});
describe("on domainObject with composition", function () {
var newObject,
childObject,
var childObject,
objectClone,
childObjectClone,
compositionPromise;

View File

@@ -187,8 +187,7 @@ define(
describe("copies object trees with multiple references to the" +
" same object", function () {
var model,
mockDomainObjectB,
var mockDomainObjectB,
mockComposingObject,
composingObjectModel,
domainObjectClone,
@@ -252,9 +251,7 @@ define(
it(" and correctly updates child identifiers in object" +
" arrays within models ", function () {
var childA_ID = task.clones[0].getId(),
childB_ID = task.clones[1].getId(),
childC_ID = task.clones[3].getId(),
childD_ID = task.clones[4].getId();
childB_ID = task.clones[1].getId();
expect(domainObjectClone.model.objArr[0].id).not.toBe(ID_A);
expect(domainObjectClone.model.objArr[0].id).toBe(childA_ID);