Create new middlewares to init profiling and another to check JSON content-type

This commit is contained in:
Daniel García Aubert
2017-11-05 18:55:23 +01:00
parent 46289f27df
commit f9ba3c41d3
2 changed files with 40 additions and 36 deletions
@@ -28,7 +28,7 @@ describe('multilayer error cases', function() {
}, {}, function(res) {
assert.equal(res.statusCode, 400, res.body);
var parsedBody = JSON.parse(res.body);
assert.deepEqual(parsedBody.errors, ["layergroup POST data must be of type application/json"]);
assert.deepEqual(parsedBody.errors, ["POST data must be of type application/json"]);
done();
});
});