Skip to content

Commit e4000b7

Browse files
committed
fix lint errors.
1 parent 7b3fed3 commit e4000b7

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

test/test-quit.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@ var test = require('tape');
44
var testHelpers = require('./helpers');
55

66
test('connect and quit with message', function(t) {
7-
var client, mock, expected;
7+
var client, mock, expected;
88

9-
mock = testHelpers.MockIrcd();
10-
client = new irc.Client('localhost', 'testbot', {debug: true});
9+
mock = testHelpers.MockIrcd();
10+
client = new irc.Client('localhost', 'testbot', {debug: true});
1111

12-
expected = testHelpers.getFixtures('quit');
12+
expected = testHelpers.getFixtures('quit');
1313

14-
t.plan(expected.sent.length + expected.received.length + 1);
14+
t.plan(expected.sent.length + expected.received.length + 1);
1515

16-
mock.server.on('connection', function() {
17-
mock.send(':localhost 001 testbot :Welcome to the Internet Relay Chat Network testbot\r\n');
18-
});
16+
mock.server.on('connection', function() {
17+
mock.send(':localhost 001 testbot :Welcome to the Internet Relay Chat Network testbot\r\n');
18+
});
1919

20-
client.on('registered', function() {
21-
t.equal(mock.outgoing[0], expected.received[0][0], expected.received[0][1]);
22-
client.disconnect('quitting as a test', function() {});
23-
});
20+
client.on('registered', function() {
21+
t.equal(mock.outgoing[0], expected.received[0][0], expected.received[0][1]);
22+
client.disconnect('quitting as a test', function() {});
23+
});
2424

25-
mock.on('end', function() {
26-
var msgs = mock.getIncomingMsgs();
25+
mock.on('end', function() {
26+
var msgs = mock.getIncomingMsgs();
2727

28-
t.equal(msgs.length, expected.sent.length, 'Server received the correct amount of messages.')
28+
t.equal(msgs.length, expected.sent.length, 'Server received the correct amount of messages.')
2929

30-
for (var i = 0; i < msgs.length; i++) {
31-
t.equal(msgs[i], expected.sent[i][0], expected.sent[i][1]);
32-
}
33-
mock.close();
34-
});
30+
for (var i = 0; i < msgs.length; i++) {
31+
t.equal(msgs[i], expected.sent[i][0], expected.sent[i][1]);
32+
}
33+
mock.close();
34+
});
3535
});

0 commit comments

Comments
 (0)