Skip to content

Commit

Permalink
Merge pull request #318 from oskarcieslik/patch-1
Browse files Browse the repository at this point in the history
Changed example with cookie-parser
  • Loading branch information
mikelax committed Feb 29, 2016
2 parents f4efb75 + a1533e5 commit ecced93
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 ecced93

Please sign in to comment.