Skip to content

Commit

Permalink
tests: req.cookie partitioned option
Browse files Browse the repository at this point in the history
  • Loading branch information
rhodgkins committed Jan 29, 2024
1 parent b2d79e5 commit b95572b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/res.cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,22 @@ describe('res', function(){
})
})

describe('partitioned', function () {
it('should set partitioned', function (done) {
var app = express();

app.use(function (req, res) {
res.cookie('name', 'tobi', { partitioned: true });
res.end();
});

request(app)
.get('/')
.expect('Set-Cookie', 'name=tobi; Path=/; Partitioned')
.expect(200, done)
})
})

describe('maxAge', function(){
it('should set relative expires', function(done){
var app = express();
Expand Down

0 comments on commit b95572b

Please sign in to comment.