TBR: New version of JSHint was release couple of hours ago
which fixes a few bugs that now expose unlinted code in our
repos. Fixing those issues in this CL.
Change-Id: I59e49095a3e3dd3751948233428466bd485db38e
diff --git a/test/integration/test-caveat-validation.js b/test/integration/test-caveat-validation.js
index 72feb3d..cc57626 100644
--- a/test/integration/test-caveat-validation.js
+++ b/test/integration/test-caveat-validation.js
@@ -10,13 +10,13 @@
var vdl = vanadium.vdl;
// Service to be invoked
-function aServiceDef() {
+function AServiceDef() {
this.aMethod = function(ctx, serverCall) {
return 'aResult';
};
}
-aServiceDef.prototype = new testService.InvokableTestMethod();
-var aService = new aServiceDef();
+AServiceDef.prototype = new testService.InvokableTestMethod();
+var aService = new AServiceDef();
test('caveatValidation', function(t) {
diff --git a/test/vom/test-vdl-arith.js b/test/vom/test-vdl-arith.js
index 9ec9807..54020fb 100644
--- a/test/vom/test-vdl-arith.js
+++ b/test/vom/test-vdl-arith.js
@@ -4,7 +4,7 @@
var test = require('prova');
var vom = require('../../src/vom');
-var ifaceSigType =
+var IfaceSigType =
require('../../src/gen-vdl/v.io/v23/vdlroot/signature').Interface;
var Promise = require('../../src/lib/promise');
@@ -36,7 +36,7 @@
// Encode the signature using the type defined in VDL-generated .js file
var writer = new vom.ByteArrayMessageWriter();
var encoder = new vom.Encoder(writer);
- encoder.encode(signature, ifaceSigType.prototype._type);
+ encoder.encode(signature, IfaceSigType.prototype._type);
var sigEncode = writer.getBytes();
// Decode the signature.
@@ -49,7 +49,7 @@
// TODO The signature type should be attached to the generated signature
// This is currently problematic (Issue 432), so manually attaching type
// for now and NOT passing the type into the encoder.
- var wrappedSignature = new ifaceSigType(signature);
+ var wrappedSignature = new IfaceSigType(signature);
// Encode the signature as a wrapped struct.
var writer = new vom.ByteArrayMessageWriter();