Skip to content

Commit

Permalink
[fix] update connect to fix test and use non-decprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Swaagie committed Feb 27, 2014
1 parent 9b80419 commit 97ecb43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "union",
"description": "A hybrid buffered / streaming middleware kernel backwards compatible with connect.",
"version": "0.3.8",
"version": "0.4.0",
"author": "Nodejitsu Inc. <info@nodejitsu.com>",
"maintainers": [
"indexzero <charlie@nodejitsu.com>",
Expand All @@ -20,7 +20,7 @@
"director": "1.x.x",
"request": "2.x.x",
"vows": "0.7.x",
"connect": "2.3.x"
"connect": "2.13.x"
},
"scripts": {
"test": "vows test/*-test.js --spec -i"
Expand Down
5 changes: 3 additions & 2 deletions test/body-parser-test.js
Expand Up @@ -7,7 +7,7 @@
*/

var assert = require('assert'),
bodyParser = require('connect').bodyParser,
connect = require('connect'),
request = require('request'),
vows = require('vows'),
union = require('../');
Expand All @@ -18,7 +18,8 @@ vows.describe('union/body-parser').addBatch({
union.createServer({
buffer: false,
before: [
bodyParser(),
connect.urlencoded(),
connect.json(),
function (req, res) {
res.end(JSON.stringify(req.body, true, 2));
}
Expand Down

0 comments on commit 97ecb43

Please sign in to comment.