mirror of
https://github.com/hanzoai/passport-local.git
synced 2026-09-23 23:48:22 +00:00
21 lines
480 B
JavaScript
21 lines
480 B
JavaScript
/* global describe, it, expect */
|
|
|
|
var Strategy = require('../lib/strategy');
|
|
|
|
|
|
describe('Strategy', function() {
|
|
|
|
var strategy = new Strategy(function(){});
|
|
|
|
it('should be named local', function() {
|
|
expect(strategy.name).to.equal('local');
|
|
});
|
|
|
|
it('should throw if constructed without a verify callback', function() {
|
|
expect(function() {
|
|
var s = new Strategy();
|
|
}).to.throw(TypeError, 'LocalStrategy requires a verify callback');
|
|
});
|
|
|
|
});
|