Skip to content

Commit d52ecd2

Browse files
author
Eran Hammer
committed
Merge pull request hapijs#2533 from hapijs/lint
clean up lint
2 parents db18b07 + 05eba70 commit d52ecd2

File tree

7 files changed

+9
-2
lines changed

7 files changed

+9
-2
lines changed

lib/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ internals.Connection.prototype._init = function () {
121121
self.info.uri = (self.settings.uri || (self.info.protocol + '://' + self.info.host + ':' + self.info.port));
122122
}
123123

124-
self._onConnection = function _onConnection(connection) {
124+
self._onConnection = function _onConnection (connection) {
125125

126126
var key = connection.remoteAddress + ':' + connection.remotePort;
127127
self._connections[key] = connection;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"wreck": "5.x.x"
5151
},
5252
"scripts": {
53-
"test": "node node_modules/lab/bin/lab -a code -t 100 -L",
53+
"test": "node node_modules/lab/bin/lab -a code -t 100 -L --lint-errors-threshold 0 --lint-warnings-threshold 0",
5454
"test-tap": "node node_modules/lab/bin/lab -a code -r tap -o tests.tap"
5555
},
5656
"licenses": [

test/connection.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ describe('Connection', function () {
638638
it('passes the options.artifacts object', function (done) {
639639

640640
var handler = function (request, reply) {
641+
641642
return reply(request.auth.artifacts);
642643
};
643644

@@ -1252,6 +1253,7 @@ describe('Connection', function () {
12521253

12531254
var table = server.table()[0].table;
12541255
var paths = table.map(function (route) {
1256+
12551257
var obj = {
12561258
method: route.method,
12571259
path: route.path

test/handler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,7 @@ describe('handler', function () {
11101110
};
11111111

11121112
handler.defaults = function (method) {
1113+
11131114
return {
11141115
app: {
11151116
x: method

test/reply.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ describe('Reply', function () {
460460

461461
var response = reply('123').hold();
462462
setTimeout(function () {
463+
463464
response.send();
464465
}, 10);
465466
};
@@ -557,6 +558,7 @@ describe('Reply', function () {
557558
};
558559

559560
var handler = function (request, reply) {
561+
560562
return reply(request.pre.m3);
561563
};
562564

test/route.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ describe('Route', function () {
9191
var server = new Hapi.Server();
9292
server.connection();
9393
expect(function () {
94+
9495
server.route({ method: 'GET', path: '/', config: {} });
9596
}).to.throw('Missing or undefined handler: GET /');
9697
done();

test/transmit.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,6 +2197,7 @@ describe('transmission', function () {
21972197
server.route({ method: 'GET', path: '/', handler: handler });
21982198

21992199
server.inject({ url: '/' }, function (res) {
2200+
22002201
expect(res.result).to.exist();
22012202
expect(res.result).to.equal('ok');
22022203
expect(res.headers['access-control-allow-methods']).to.exist();

0 commit comments

Comments
 (0)