[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

@@ -60,7 +60,7 @@ define(
});
it("allows setting a model", function () {
mutation.invoke(function (m) {
mutation.invoke(function () {
return { someKey: "some value" };
});
expect(testModel.number).toBeUndefined();

View File

@@ -104,10 +104,8 @@ define(
});
it("avoids redundant requests", function () {
// Lookups can be expensive, so this capability
// Lookups can be expensive, so this capability
// should have some self-caching
var response;
mockDomainObject.getModel
.andReturn({ relationships: { xyz: ['a'] } });
@@ -123,7 +121,7 @@ define(
it("makes new requests on modification", function () {
// Lookups can be expensive, so this capability
// should have some self-caching
var response, testModel;
var testModel;
testModel = { relationships: { xyz: ['a'] } };

View File

@@ -34,7 +34,7 @@ define(
});
describe("when space is encoded", function () {
var idSpace, idKey, spacedId;
var idSpace, idKey;
beforeEach(function () {
idSpace = "a-specific-space";

View File

@@ -46,12 +46,6 @@ define(
};
}
function mockAll(mockPromises) {
return mockPromise(mockPromises.map(function (p) {
return mockPromise(p).testValue;
}));
}
beforeEach(function () {
mockModelService = jasmine.createSpyObj(
"modelService",

View File

@@ -30,8 +30,6 @@ define(
mockIdentifierService,
mockCapabilityConstructor,
mockCapabilityInstance,
mockCapabilities,
mockIdentifier,
idCounter,
testModel,
instantiate,

View File

@@ -26,13 +26,7 @@ define(
describe("Type provider", function () {
var captured = {},
capture = function (name) {
return function (value) {
captured[name] = value;
};
},
testTypeDefinitions = [
var testTypeDefinitions = [
{
key: 'basic',
glyph: "X",

View File

@@ -133,8 +133,7 @@ define(
});
it("enforces view restrictions from types", function () {
var testType = "testType",
testView = { key: "x" },
var testView = { key: "x" },
provider = new ViewProvider([testView], mockLog);
// Include a "type" capability