[eslint] remove exception for one-var, fix violations
This commit is contained in:
@ -19,7 +19,11 @@ function listenerCount(emitter, event) {
|
||||
|
||||
describe('Connection Pool', function () {
|
||||
describe('Adding/Removing/Syncing Connections', function () {
|
||||
let pool, host, connection, host2, connection2;
|
||||
let pool;
|
||||
let host;
|
||||
let connection;
|
||||
let host2;
|
||||
let connection2;
|
||||
|
||||
beforeEach(function () {
|
||||
pool = new ConnectionPool({});
|
||||
@ -93,7 +97,9 @@ describe('Connection Pool', function () {
|
||||
});
|
||||
|
||||
describe('Connection selection', function () {
|
||||
let pool, host, host2;
|
||||
let pool;
|
||||
let host;
|
||||
let host2;
|
||||
|
||||
beforeEach(function () {
|
||||
pool = new ConnectionPool({});
|
||||
@ -211,7 +217,11 @@ describe('Connection Pool', function () {
|
||||
});
|
||||
|
||||
describe('Connection state management', function () {
|
||||
let pool, host, host2, connection, connection2;
|
||||
let pool;
|
||||
let host;
|
||||
let host2;
|
||||
let connection;
|
||||
let connection2;
|
||||
|
||||
beforeEach(function () {
|
||||
pool = new ConnectionPool({});
|
||||
|
||||
@ -128,7 +128,8 @@ describe('Log class', function () {
|
||||
});
|
||||
|
||||
describe('instance without one output listening to all events', function () {
|
||||
let log, call;
|
||||
let log;
|
||||
let call;
|
||||
beforeEach(function () {
|
||||
call = void 0;
|
||||
log = new Log({
|
||||
|
||||
@ -817,7 +817,8 @@ describe('Transport Class', function () {
|
||||
]);
|
||||
|
||||
sinon.assert.calledOnce(trans.connectionPool.setHosts);
|
||||
let host, hosts = trans.connectionPool.setHosts.firstCall.args[0];
|
||||
let host;
|
||||
const hosts = trans.connectionPool.setHosts.firstCall.args[0];
|
||||
|
||||
expect(hosts).to.have.length(3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user