[eslint] remove exception for no-var, fix violations

This commit is contained in:
spalger
2017-06-14 18:56:26 -07:00
parent 3d75c6ff0f
commit 058569d4f8
11 changed files with 21 additions and 17 deletions

View File

@ -481,12 +481,13 @@ describe('Http Connector', function () {
const fixture = _.partial(path.join, __dirname, '../../fixtures');
let timeout; // start the timeout once we hear back from the client
let client; // eslint-disable-line prefer-const
const server = cp.fork(fixture('keepalive_server.js'))
.on('message', function (port) {
client.send(port);
});
var client = cp.fork(fixture('keepalive.js'))
client = cp.fork(fixture('keepalive.js'))
.on('message', function (output) {
expect(output).to.have.property('remaining', 0);
expect(output).to.have.property('timeouts', 0);

View File

@ -722,6 +722,7 @@ describe('Transport Class', function () {
});
const con = getConnection(tran);
let ret; // eslint-disable-line prefer-const
stub(con, 'request', function () {
process.nextTick(function () {
ret.abort();
@ -731,7 +732,7 @@ describe('Transport Class', function () {
};
});
var ret = tran.request({});
ret = tran.request({});
});
it('ignores the response from the connection when the connector does not support aborting', function (done) {
const tran = new Transport({