package.test.js 444 B

12345678910111213141516171819202122
  1. /* global describe, it */
  2. var sinon = require('sinon');
  3. var pkg = require('..');
  4. describe('passport-ethereum', function() {
  5. it('should export Strategy constructor as module', function() {
  6. expect(pkg).to.be.a('function');
  7. expect(pkg).to.equal(pkg.Strategy);
  8. });
  9. it('should export Strategy constructor', function() {
  10. expect(pkg.Strategy).to.be.a('function');
  11. });
  12. });
  13. afterEach(function() {
  14. sinon.restore();
  15. });