Skip to content
Myr

Added multiple Set-Cookie header tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent afd2b4b · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • tests:+2 added−1 removed

1 file+2 added−1 removed

modified:test/response.test.js+2 added-1 removed
360 unmodified lines
361 var app = express.createServer();362 363 app.get('/', function(req, res){364 res.cookie('rememberme', 'yes', { expires: new Date(1), httpOnly: true });365 res.cookie('something', 'else');366 res.redirect('/');367 });368 369 assert.response(app,370 { url: '/' },371 function(res){372 res.headers['set-cookie']372 .should.eql(['rememberme=yes; expires=Thu, 01 Jan 1970 00:00:00 GMT; httpOnly']);373 .should.eql(['rememberme=yes; expires=Thu, 01 Jan 1970 00:00:00 GMT; httpOnly', 'something=else']);374 });375 },376 377 'test #clearCookie()': function(){
27 unmodified lines