mirror of
https://github.com/hanzoai/passport.git
synced 2026-09-24 17:01:30 +00:00
23 lines
634 B
JavaScript
23 lines
634 B
JavaScript
/* global describe, it, expect */
|
|
|
|
var passport = require('..');
|
|
|
|
describe('passport', function() {
|
|
|
|
it('should expose singleton authenticator', function() {
|
|
expect(passport).to.be.an('object');
|
|
expect(passport).to.be.an.instanceOf(passport.Authenticator);
|
|
});
|
|
|
|
it('should export constructors', function() {
|
|
expect(passport.Authenticator).to.equal(passport.Passport);
|
|
expect(passport.Authenticator).to.be.a('function');
|
|
expect(passport.Strategy).to.be.a('function');
|
|
});
|
|
|
|
it('should export strategies', function() {
|
|
expect(passport.strategies.SessionStrategy).to.be.a('function');
|
|
});
|
|
|
|
});
|