Skip to content

Commit d12daec

Browse files
committed
fix(tests): lint fix
1 parent 3947481 commit d12daec

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

examples/mongodb/model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* global Promise */
12

23
/**
34
* Module dependencies.

examples/postgresql/model.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
/* eslint-disable require-yield */
12

2-
/**
3+
/**
34
* Module dependencies.
45
*/
56

@@ -82,3 +83,5 @@ module.exports.saveAccessToken = function *(token, client, user) {
8283
return result.rowCount ? result.rows[0] : false; // TODO return object with client: {id: clientId} and user: {id: userId} defined
8384
});
8485
};
86+
87+
/* eslint-enable require-yield */

examples/redis/model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* global Promise */
12

23
/**
34
* Module dependencies.

test/integration/index_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ describe('ExpressOAuthServer', function() {
108108
request(app.listen())
109109
.get('/')
110110
.set('Authorization', 'Bearer foobar')
111-
.expect(200, function(err, res){
111+
.expect(200, function(err /*, res */){
112112
spy.called.should.be.True();
113113
done(err);
114114
});
@@ -146,7 +146,7 @@ describe('ExpressOAuthServer', function() {
146146
.post('/?state=foobiz')
147147
.set('Authorization', 'Bearer foobar')
148148
.send({ client_id: 12345, response_type: 'code' })
149-
.expect(302, function(err, res){
149+
.expect(302, function(err /*, res */){
150150
spy.called.should.be.True();
151151
done(err);
152152
});
@@ -243,7 +243,7 @@ describe('ExpressOAuthServer', function() {
243243
.post('/')
244244
.send('client_id=foo&client_secret=bar&grant_type=password&username=qux&password=biz')
245245
.expect({ access_token: 'foobar', token_type: 'Bearer' })
246-
.expect(200, function(err, res){
246+
.expect(200, function(err /*, res */){
247247
spy.called.should.be.True();
248248
done(err);
249249
});
@@ -261,7 +261,7 @@ describe('ExpressOAuthServer', function() {
261261
return { accessToken: 'foobar', client: {}, user: {} };
262262
}
263263
};
264-
var spy = sinon.spy();
264+
sinon.spy();
265265
var oauth = new ExpressOAuthServer({ model: model, continueMiddleware: true });
266266

267267
app.use(oauth.token());

0 commit comments

Comments
 (0)