Files
2014-03-08 10:45:41 -08:00

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');
});
});