UNPKG

passport-bluemix

Version:

BlueMix OAuth 2.0 authentication strategy for Passport.

25 lines (19 loc) 681 B
var strategy = require('..'); var chai = require('chai'); var mocha = require('mocha'); var expect = chai.expect; var describe = mocha.describe; console.log(strategy); describe('passport-oauth2', function() { it('should export Strategy constructor directly from package', function() { expect(strategy).to.be.a('function'); expect(strategy).to.equal(strategy.BlueMixOAuth2Strategy); }); it('should export Error constructors', function() { expect(strategy.AuthorizationError).to.be.a('function'); expect(strategy.TokenError).to.be.a('function'); expect(strategy.InternalOAuthError).to.be.a('function'); }); }); mocha.setup('bdd'); mocha.run();