[eslint] remove exception for no-var, fix violations
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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({
|
||||
|
||||
Reference in New Issue
Block a user