[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

@@ -26,7 +26,7 @@ define(
describe("Properties dialog", function () {
var type, properties, domainObject, model, dialog;
var type, properties, model, dialog;
beforeEach(function () {
type = {

View File

@@ -93,8 +93,7 @@ define(
});
it("exposes a warning message for unload", function () {
var obj = mockObject,
errorMessage = "Unsaved changes";
var errorMessage = "Unsaved changes";
// Normally, should be undefined
expect(controller.getUnloadWarning()).toBeUndefined();

View File

@@ -28,7 +28,6 @@ define(
var captured,
completionCapability,
object,
mockQ,
mockType,
cache;
@@ -45,7 +44,7 @@ define(
type: mockType
}[key];
},
hasCapability: function (key) {
hasCapability: function () {
return false;
}
};

View File

@@ -25,7 +25,11 @@ define(
function (EditableDomainObject) {
describe("Editable domain object", function () {
var object;
beforeEach(function () {
object = new EditableDomainObject();
});
});
}
);

View File

@@ -25,8 +25,7 @@ define(
function (EditableViewPolicy) {
describe("The editable view policy", function () {
var testView,
mockDomainObject,
var mockDomainObject,
testMode,
policy;

View File

@@ -147,7 +147,7 @@ define(
});
it("invokes setters on update", function () {
var structure, state;
var structure;
testABC.a = jasmine.createSpy('a');