0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Remove duplicate function

no issue
- remove duplicate registerSuccessfulBearerStrategy

Thanks to @jonblack for finding that!
This commit is contained in:
Sebastian Gierlinger 2015-08-12 15:17:09 +02:00
parent 454f456adf
commit b2ede23c4a

View file

@ -31,16 +31,6 @@ function registerUnsuccessfulBearerStrategy() {
));
}
function registerSuccessfulBearerStrategy() {
// register fake BearerStrategy which always authenticates
passport.use(new BearerStrategy(
function strategy(accessToken, done) {
accessToken.should.eql(token);
return done(null, user, info);
}
));
}
describe('authenticate', function () {
var res, req, next, sandbox;