From 434de7786c5e4815a5138776bcfe653ba2ab04c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Thu, 14 Dec 2017 18:26:15 +0100 Subject: [PATCH] Fix test from merge --- test/acceptance/error-middleware.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/test/acceptance/error-middleware.js b/test/acceptance/error-middleware.js index 3ad22774..4df5b7e6 100644 --- a/test/acceptance/error-middleware.js +++ b/test/acceptance/error-middleware.js @@ -17,22 +17,24 @@ describe('error middleware', function () { message: "Missing cartocss for layer 0 options", name: "Error", label: "ANONYMOUS LAYERGROUP", - type: "layer", + type: "layer", }, moreErrors: [] }; this.testClient = new TestClient(mapConfig, 1234); - - const expectedResponse = { - status: 400, - headers: { - 'Content-Type': 'application/json; charset=utf-8', - 'X-Tiler-Errors': JSON.stringify(errorHeader) + + const params = { + response: { + status: 400, + headers: { + '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); done(); });