Skip to content

Commit

Permalink
Update express dev dependency to version 4
Browse files Browse the repository at this point in the history
  • Loading branch information
kapetan committed Nov 2, 2014
1 parent ac5f83d commit 886cc31
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
},
"devDependencies": {
"request": "~2.30.0",
"express": "~3.4.7",
"express": "~4.10.1",
"mocha": "~1.15.1",
"chai": "~1.8.1",
"sinon": "~1.7.3",
"sinon-chai": "~2.4.0",
"mocha-jshint": "~0.0.7",
"once": "~1.3.0"
"once": "~1.3.0",
"method-override": "~2.3.0",
"body-parser": "~1.9.2"
},
"license": "MIT",
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion test/integration/multifetch.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ describe('multifetch', function() {
chai.expect(body)
.to.have.property('user')
.to.have.property('headers')
.to.have.property('content-type', 'application/json');
.to.have.property('content-type')
.to.match(/^application\/json/);
});

it('should contain user_1', function() {
Expand Down
7 changes: 5 additions & 2 deletions test/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ var fs = require('fs');
var path = require('path');

var express = require('express');
var methodOverride = require('method-override');
var bodyParser = require('body-parser');

var users = require('./fixtures/users');
var albums = require('./fixtures/albums');

Expand Down Expand Up @@ -56,8 +59,8 @@ var album = function(request, response, next) {
var create = function() {
var app = express();

app.use(express.json());
app.use(express.methodOverride());
app.use(bodyParser.json());
app.use(methodOverride());

app.use(function(request, response, next) {
response.notFound = function() {
Expand Down

0 comments on commit 886cc31

Please sign in to comment.