2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

fix fixtures

This commit is contained in:
José F. Romaniello 2015-08-31 11:08:31 -03:00
parent 4fdb4e62f0
commit 8d6dd198f0
3 changed files with 6 additions and 10 deletions

View File

@ -26,12 +26,12 @@
"xtend": "~2.1.2"
},
"devDependencies": {
"body-parser": "~1.13.3",
"express": "~4.10.6",
"body-parser": "^1.10.0",
"serve-static": "^1.7.1",
"mocha": "~1.17.0",
"passport-local": "~0.1.6",
"request": "~2.19.0",
"serve-static": "^1.7.1",
"server-destroy": "~1.0.1",
"should": "~1.2.2",
"socket.io": "^1.0.4",

View File

@ -7,6 +7,7 @@ var socketio_jwt = require('../../lib');
var jwt = require('jsonwebtoken');
var xtend = require('xtend');
var bodyParser = require('body-parser');
var server, sio;
var enableDestroy = require('server-destroy');
@ -26,10 +27,7 @@ exports.start = function (options, callback) {
var app = express();
app.configure(function(){
this.use(express.json());
this.use(express.urlencoded());
});
app.use(bodyParser.json());
app.post('/login', function (req, res) {
var profile = {

View File

@ -7,6 +7,7 @@ var socketio_jwt = require('../../lib');
var jwt = require('jsonwebtoken');
var xtend = require('xtend');
var bodyParser = require('body-parser');
var server, sio;
var enableDestroy = require('server-destroy');
@ -26,10 +27,7 @@ exports.start = function (callback) {
var app = express();
app.configure(function(){
this.use(express.json());
this.use(express.urlencoded());
});
app.use(bodyParser.json());
app.post('/login', function (req, res) {
var profile = {