Skip to content

Commit

Permalink
Clean up tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed May 19, 2022
1 parent cfa8259 commit b395106
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/http/request.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ describe('http.ServerRequest', function() {
req.session['passport'] = {};
req.session.regenerate = function(cb) {
req.session = { id: '2' };
req.session['passport'] = {};
process.nextTick(cb);
}

Expand Down Expand Up @@ -414,7 +413,7 @@ describe('http.ServerRequest', function() {
});

it('should not serialize user', function() {
expect(req.session['passport'].user).to.be.undefined;
expect(req.session['passport']).to.be.undefined;
});
});

Expand All @@ -435,7 +434,6 @@ describe('http.ServerRequest', function() {
req.session['passport'] = {};
req.session.regenerate = function(cb) {
req.session = { id: '2' };
req.session['passport'] = {};
req.session.save = function(cb) {
process.nextTick(function(){
cb(new Error('something went wrong'));
Expand Down

0 comments on commit b395106

Please sign in to comment.