Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed May 18, 2022
1 parent c018dea commit fa80b20
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/http/request.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,14 @@ describe('http.ServerRequest', function() {
req.session = { id: '1' };
req.session['passport'] = {};
req.session['passport'].user = '1';
req.session.save = function(cb) {
expect(req.session['passport'].user).to.be.undefined;
process.nextTick(cb);
};
req.session.regenerate = function(cb) {
req.session = { id: '2' };
process.nextTick(cb);
}
};

var error;

Expand Down Expand Up @@ -466,10 +470,14 @@ describe('http.ServerRequest', function() {
req.session = { id: '1' };
req.session['passport'] = {};
req.session['passport'].user = '1';
req.session.save = function(cb) {
expect(req.session['passport'].user).to.be.undefined;
process.nextTick(cb);
};
req.session.regenerate = function(cb) {
req.session = { id: '2' };
process.nextTick(cb);
}
};

var error;

Expand Down

0 comments on commit fa80b20

Please sign in to comment.