From b395106fef73f2d06cb8cbfed936bcf5f9713e4b Mon Sep 17 00:00:00 2001 From: Jared Hanson Date: Thu, 19 May 2022 07:06:15 -0700 Subject: [PATCH] Clean up tests. --- test/http/request.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/http/request.test.js b/test/http/request.test.js index 79e93db2..10863824 100644 --- a/test/http/request.test.js +++ b/test/http/request.test.js @@ -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); } @@ -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; }); }); @@ -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'));