ESlint manual fix

This commit is contained in:
Diga Widyaprana
2016-02-27 21:07:26 +08:00
parent d1cbc68ea7
commit c51a930a2c
6 changed files with 20 additions and 18 deletions

View File

@@ -186,7 +186,10 @@ describe('connection', function () {
it('reconnect delay should increase every time', function (done) {
var manager = io.Manager({ reconnection: true, timeout: 0, reconnectionAttempts: 3, reconnectionDelay: 100, randomizationFactor: 0.2 });
var socket = manager.socket('/timeout');
var reconnects = 0, increasingDelay = true, startTime, prevDelay = 0;
var reconnects = 0;
var increasingDelay = true;
var startTime;
var prevDelay = 0;
socket.on('connect_error', function () {
startTime = new Date().getTime();

View File

@@ -4,7 +4,6 @@ var url = require('../lib/url');
var expect = require('expect.js');
describe('url', function () {
it('works with undefined', function () {
loc.hostname = 'woot.com';
loc.protocol = 'https:';