Skip to content

Commit

Permalink
Merge pull request #10 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 8, 2014
2 parents a83c3d3 + 4763875 commit 7c80019
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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/oauth2.error.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('OAuth2Strategy', function() {
var err;

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

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

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

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

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand Down Expand Up @@ -257,7 +257,7 @@ describe('OAuth2Strategy', function() {
var 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/oauth2.fail.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('OAuth2Strategy', function() {
var info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.fail(function(i) {
info = i;
done();
Expand Down
28 changes: 14 additions & 14 deletions test/oauth2.normal.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('OAuth2Strategy', function() {
, info;

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

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

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

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand All @@ -153,7 +153,7 @@ describe('OAuth2Strategy', function() {
var url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand All @@ -172,7 +172,7 @@ describe('OAuth2Strategy', function() {
var url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand All @@ -191,7 +191,7 @@ describe('OAuth2Strategy', function() {
var url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand All @@ -210,7 +210,7 @@ describe('OAuth2Strategy', function() {
var url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand All @@ -232,7 +232,7 @@ describe('OAuth2Strategy', function() {
var info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.fail(function(i) {
info = i;
done();
Expand All @@ -254,7 +254,7 @@ describe('OAuth2Strategy', function() {
var info;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.fail(function(i) {
info = i;
done();
Expand All @@ -277,7 +277,7 @@ describe('OAuth2Strategy', function() {
var err;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand All @@ -302,7 +302,7 @@ describe('OAuth2Strategy', function() {
var err;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand All @@ -328,7 +328,7 @@ describe('OAuth2Strategy', function() {
var err;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.error(function(e) {
err = e;
done();
Expand All @@ -354,7 +354,7 @@ describe('OAuth2Strategy', function() {
var 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/oauth2.options.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('OAuth2Strategy', function() {
var url;

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

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

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

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

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand All @@ -218,7 +218,7 @@ describe('OAuth2Strategy', function() {
var url;

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand All @@ -240,7 +240,7 @@ describe('OAuth2Strategy', function() {
var url;

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

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

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

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

before(function(done) {
chai.passport(strategy)
chai.passport.use(strategy)
.redirect(function(u) {
url = u;
done();
Expand All @@ -413,7 +413,7 @@ describe('OAuth2Strategy', function() {
var 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/oauth2.passreq.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('OAuth2Strategy', function() {
, info;

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

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

0 comments on commit 7c80019

Please sign in to comment.