From 6ee1f1a8bf10ad4ca6bcaf27f574ff1174ea89fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 1 Feb 2016 16:31:03 +0100 Subject: [PATCH] Fixed bad assertion in multilayer tests --- test/acceptance/ported/multilayer.js | 26 ++++++++++++++----- .../ported/multilayer_interactivity.js | 1 - 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/test/acceptance/ported/multilayer.js b/test/acceptance/ported/multilayer.js index 898ff1a4..0487326b 100644 --- a/test/acceptance/ported/multilayer.js +++ b/test/acceptance/ported/multilayer.js @@ -401,11 +401,26 @@ describe('multilayer', function() { assert.ok(body.layergroupid); expected_token = LayergroupToken.parse(body.layergroupid).token; assert.deepEqual(body.metadata, { - layers: [ - { type: "mapnik", "meta":{} }, - { type: "mapnik", "meta":{} } - ] - }); + layers: [{ + type: "mapnik", + meta: { + stats: [{ + type: "table", + name: "public.test_table", + features: -1 + }] + } + }, { + type: "mapnik", + meta: { + stats: [{ + type: "table", + name: "public.test_table", + features: -1 + }] + } + }] + }); didRunJsonCallback = true; } eval(res.body); @@ -1278,4 +1293,3 @@ describe('multilayer', function() { }); }); - diff --git a/test/acceptance/ported/multilayer_interactivity.js b/test/acceptance/ported/multilayer_interactivity.js index f4bf728e..44b54d4f 100644 --- a/test/acceptance/ported/multilayer_interactivity.js +++ b/test/acceptance/ported/multilayer_interactivity.js @@ -374,4 +374,3 @@ describe('multilayer interactivity and layers order', function() { chaosScenarios.forEach(testInteractivityLayersOrderScenario); }); -