Upgrade express, adds body-parser
- basic changes in server - basic changes in unit tests
This commit is contained in:
@@ -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 */
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user