Fix test from merge
This commit is contained in:
parent
07b4cb78b1
commit
434de7786c
@ -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();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user