Upgrade express, adds body-parser

- basic changes in server
- basic changes in unit tests
This commit is contained in:
Raul Ochoa
2015-09-17 00:19:00 +02:00
parent e335f51dbc
commit beabe48aec
5 changed files with 334 additions and 39 deletions
@@ -36,6 +36,9 @@ describe('tile stats', function() {
}
};
var resMock = {
status: function() { return this; },
json: function() {},
jsonp: function() {},
send: function() {}
};
layergroupController.finalizeGetTileOrGrid('Unsupported format png2', reqMock, resMock, null, null);
@@ -61,6 +64,9 @@ describe('tile stats', function() {
}
};
var resMock = {
status: function() { return this; },
json: function() {},
jsonp: function() {},
send: function() {}
};
@@ -19,9 +19,9 @@ describe('windshaft', function() {
it('can spawn a new server on the global listen port', function(done){
var ws = cartodbServer(serverOptions);
ws.listen(global.environment.windshaft_port, function() {
var server = ws.listen(global.environment.windshaft_port, function() {
assert.ok(ws);
ws.close(done); /* allow proper tear down */
server.close(done); /* allow proper tear down */
});
});