Permalink
Browse files

Update dependencies.

  • Loading branch information...
1 parent b695ee2 commit cb3567772e006066df2f0a0091d0e4a61682a152 @jaredhanson committed Mar 9, 2014
Showing with 19 additions and 11 deletions.
  1. +3 −3 lib/passport-github/index.js
  2. +2 −2 lib/passport-github/strategy.js
  3. +4 −3 package.json
  4. +2 −0 test/index-test.js
  5. +8 −3 test/package.test.js
@@ -5,11 +5,11 @@ var Strategy = require('./strategy');
/**
- * Framework version.
+ * Expose `Strategy` directly from package.
*/
-require('pkginfo')(module, 'version');
+exports = module.exports = Strategy;
/**
- * Expose constructors.
+ * Export constructors.
*/
exports.Strategy = Strategy;
@@ -2,8 +2,8 @@
* Module dependencies.
*/
var util = require('util')
- , OAuth2Strategy = require('passport-oauth').OAuth2Strategy
- , InternalOAuthError = require('passport-oauth').InternalOAuthError;
+ , OAuth2Strategy = require('passport-oauth2')
+ , InternalOAuthError = require('passport-oauth2').InternalOAuthError;
/**
View
@@ -30,11 +30,12 @@
],
"main": "./lib/passport-github",
"dependencies": {
- "pkginfo": "0.2.x",
- "passport-oauth": "~1.0.0"
+ "passport-oauth2": "1.x.x"
},
"devDependencies": {
- "vows": "~0.7.x"
+ "vows": "~0.7.x",
+ "mocha": "1.x.x",
+ "chai": "1.x.x"
},
"engines": {
"node": ">= 0.4.0"
View
@@ -6,10 +6,12 @@ var github = require('passport-github');
vows.describe('passport-github').addBatch({
+ /*
'module': {
'should report a version': function (x) {
assert.isString(github.version);
},
},
+ */
}).export(module);
View
@@ -1,11 +1,16 @@
/* global describe, it, expect */
-var pkg = require('..');
+var strategy = require('..');
describe('passport-github', function() {
+
+ it('should export Strategy constructor directly from package', function() {
+ expect(strategy).to.be.a('function');
+ expect(strategy).to.equal(strategy.Strategy);
+ });
- it('should export object', function() {
- expect(pkg).to.be.an('object');
+ it('should export Strategy constructor', function() {
+ expect(strategy.Strategy).to.be.a('function');
});
});

0 comments on commit cb35677

Please sign in to comment.