diff --git a/core/test/unit/middleware/authentication_spec.js b/core/test/unit/middleware/authentication_spec.js index 336c72122c..6a041d484c 100644 --- a/core/test/unit/middleware/authentication_spec.js +++ b/core/test/unit/middleware/authentication_spec.js @@ -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;