Skip to content

Commit

Permalink
Merge pull request #2 from tomhughes/strategy
Browse files Browse the repository at this point in the history
Update to use chai-passport-strategy 0.2.x
  • Loading branch information
jaredhanson committed Mar 2, 2015
2 parents 0208094 + 8f6a2d4 commit e841f92
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"mocha": "1.x.x",
"chai": "1.x.x",
"chai-passport-strategy": "0.1.x"
"chai-passport-strategy": "0.2.x"
},
"engines": { "node": ">= 0.4.0" },
"scripts": {
Expand Down
12 changes: 6 additions & 6 deletions test/oauth.error.test.js
Expand Up @@ -26,7 +26,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down Expand Up @@ -79,7 +79,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down Expand Up @@ -124,7 +124,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down Expand Up @@ -174,7 +174,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down Expand Up @@ -228,7 +228,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down Expand Up @@ -278,7 +278,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down
2 changes: 1 addition & 1 deletion test/oauth.fail.test.js
Expand Up @@ -29,7 +29,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.fail(function(i) {
info = i;
done();
Expand Down
8 changes: 4 additions & 4 deletions test/oauth.normal.test.js
Expand Up @@ -44,7 +44,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.success(function(u, i) {
user = u;
info = i;
Expand Down Expand Up @@ -83,7 +83,7 @@ describe('OAuthStrategy', function() {
, err;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down Expand Up @@ -113,7 +113,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -141,7 +141,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.fail(function(i) {
info = i;
done();
Expand Down
24 changes: 12 additions & 12 deletions test/oauth.options.test.js
Expand Up @@ -53,7 +53,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -81,7 +81,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -175,7 +175,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -206,7 +206,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -237,7 +237,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -276,7 +276,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -316,7 +316,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -355,7 +355,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -431,7 +431,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -463,7 +463,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down Expand Up @@ -526,7 +526,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down
4 changes: 2 additions & 2 deletions test/oauth.passreq.test.js
Expand Up @@ -36,7 +36,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.success(function(u, i) {
user = u;
info = i;
Expand Down Expand Up @@ -108,7 +108,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.success(function(u, i) {
user = u;
info = i;
Expand Down
6 changes: 3 additions & 3 deletions test/oauth.sub.parseerrorresponse.test.js
Expand Up @@ -50,7 +50,7 @@ describe('OAuthStrategy', function() {
var request, err;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down Expand Up @@ -98,7 +98,7 @@ describe('OAuthStrategy', function() {
var request, err;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down Expand Up @@ -153,7 +153,7 @@ describe('OAuthStrategy', function() {
var request, err;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down
2 changes: 1 addition & 1 deletion test/oauth.sub.requesttokenparams.test.js
Expand Up @@ -51,7 +51,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down
2 changes: 1 addition & 1 deletion test/oauth.sub.userauthorizationparams.test.js
Expand Up @@ -47,7 +47,7 @@ describe('OAuthStrategy', function() {
, url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand Down
14 changes: 7 additions & 7 deletions test/oauth.sub.userprofile.test.js
Expand Up @@ -49,7 +49,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.success(function(u, i) {
user = u;
info = i;
Expand Down Expand Up @@ -93,7 +93,7 @@ describe('OAuthStrategy', function() {
, err;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down Expand Up @@ -152,7 +152,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.success(function(u, i) {
user = u;
info = i;
Expand Down Expand Up @@ -223,7 +223,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.success(function(u, i) {
user = u;
info = i;
Expand Down Expand Up @@ -295,7 +295,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.success(function(u, i) {
user = u;
info = i;
Expand Down Expand Up @@ -367,7 +367,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.success(function(u, i) {
user = u;
info = i;
Expand Down Expand Up @@ -440,7 +440,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.success(function(u, i) {
user = u;
info = i;
Expand Down
2 changes: 1 addition & 1 deletion test/oauth.verify.test.js
Expand Up @@ -35,7 +35,7 @@ describe('OAuthStrategy', function() {
, info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.success(function(u, i) {
user = u;
info = i;
Expand Down

0 comments on commit e841f92

Please sign in to comment.