[Build] Remove unused variables from specs
...to satisfy JSHint.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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'] } };
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ define(
|
||||
});
|
||||
|
||||
describe("when space is encoded", function () {
|
||||
var idSpace, idKey, spacedId;
|
||||
var idSpace, idKey;
|
||||
|
||||
beforeEach(function () {
|
||||
idSpace = "a-specific-space";
|
||||
|
||||
@@ -46,12 +46,6 @@ define(
|
||||
};
|
||||
}
|
||||
|
||||
function mockAll(mockPromises) {
|
||||
return mockPromise(mockPromises.map(function (p) {
|
||||
return mockPromise(p).testValue;
|
||||
}));
|
||||
}
|
||||
|
||||
beforeEach(function () {
|
||||
mockModelService = jasmine.createSpyObj(
|
||||
"modelService",
|
||||
|
||||
@@ -30,8 +30,6 @@ define(
|
||||
mockIdentifierService,
|
||||
mockCapabilityConstructor,
|
||||
mockCapabilityInstance,
|
||||
mockCapabilities,
|
||||
mockIdentifier,
|
||||
idCounter,
|
||||
testModel,
|
||||
instantiate,
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user