Skip to content

Commit ecced93

Browse files
committed
Merge pull request #318 from oskarcieslik/patch-1
Changed example with cookie-parser
2 parents f4efb75 + a1533e5 commit ecced93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,13 @@ request.get('/').expect('heya', function(err){
134134
```js
135135
var request = require('supertest')
136136
, should = require('should')
137-
, express = require('express');
137+
, express = require('express')
138+
, cookieParser = require('cookie-parser');
138139

139140

140141
describe('request.agent(app)', function(){
141142
var app = express();
142-
app.use(express.cookieParser());
143+
app.use(cookieParser());
143144

144145
app.get('/', function(req, res){
145146
res.cookie('cookie', 'hey');

0 commit comments

Comments
 (0)