Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] update connect to fix test and use non-decprecated methods

  • Loading branch information...
commit 97ecb436b0d67410e00599414c164a1acc3a76bd 1 parent 9b80419
@Swaagie Swaagie authored
Showing with 5 additions and 4 deletions.
  1. +2 −2 package.json
  2. +3 −2 test/body-parser-test.js
View
4 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>",
@@ -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"
View
5 test/body-parser-test.js
@@ -7,7 +7,7 @@
*/
var assert = require('assert'),
- bodyParser = require('connect').bodyParser,
+ connect = require('connect'),
request = require('request'),
vows = require('vows'),
union = require('../');
@@ -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));
}
Please sign in to comment.
Something went wrong with that request. Please try again.