Fix test from merge

This commit is contained in:
Daniel García Aubert 2017-12-14 18:26:15 +01:00
parent 07b4cb78b1
commit 434de7786c

View File

@ -17,22 +17,24 @@ describe('error middleware', function () {
message: "Missing cartocss for layer 0 options", message: "Missing cartocss for layer 0 options",
name: "Error", name: "Error",
label: "ANONYMOUS LAYERGROUP", label: "ANONYMOUS LAYERGROUP",
type: "layer", type: "layer",
}, },
moreErrors: [] moreErrors: []
}; };
this.testClient = new TestClient(mapConfig, 1234); this.testClient = new TestClient(mapConfig, 1234);
const expectedResponse = { const params = {
status: 400, response: {
headers: { status: 400,
'Content-Type': 'application/json; charset=utf-8', headers: {
'X-Tiler-Errors': JSON.stringify(errorHeader) 'Content-Type': 'application/json; charset=utf-8',
'X-Tiler-Errors': JSON.stringify(errorHeader)
}
} }
}; };
this.testClient.getLayergroup(expectedResponse, (err) => { this.testClient.getLayergroup(params, (err) => {
assert.ifError(err); assert.ifError(err);
done(); done();
}); });