From a1533e5392ca7538616b3f3379bdc6a9a2ce7e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Cie=C5=9Blik?= Date: Mon, 22 Feb 2016 22:34:46 +0100 Subject: [PATCH] Changed example with cookie-parser Cookie parser has been deleted from express and moved into https://github.com/expressjs/cookie-parser :) --- Readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index daf1b43f..efdcfb6c 100644 --- a/Readme.md +++ b/Readme.md @@ -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');