0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00

Merge pull request #5661 from sebgie/remove-duplicate-func

Remove duplicate function
This commit is contained in:
Hannah Wolfe 2015-08-20 10:25:09 +01:00
commit 26f7c5e0ad

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;