Skip to content

Commit

Permalink
Changed example with cookie-parser
Browse files Browse the repository at this point in the history
Cookie parser has been deleted from express and moved into https://github.com/expressjs/cookie-parser :)
  • Loading branch information
rpunkfu committed Feb 22, 2016
1 parent f4efb75 commit a1533e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Readme.md
Expand Up @@ -134,12 +134,13 @@ request.get('/').expect('heya', function(err){
```js
var request = require('supertest')
, should = require('should')
, express = require('express');
, express = require('express')
, cookieParser = require('cookie-parser');


describe('request.agent(app)', function(){
var app = express();
app.use(express.cookieParser());
app.use(cookieParser());

app.get('/', function(req, res){
res.cookie('cookie', 'hey');
Expand Down

0 comments on commit a1533e5

Please sign in to comment.