From 2232d7dadff232193114e431cc273483287d9be3 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Wed, 22 May 2019 11:59:48 -0400 Subject: [PATCH] Fix code tests --- test/spec/renderer/features.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/test/spec/renderer/features.js b/test/spec/renderer/features.js index 2a72385e3..106dd7113 100644 --- a/test/spec/renderer/features.js +++ b/test/spec/renderer/features.js @@ -306,7 +306,7 @@ describe('iD.rendererFeatures', function() { features.gatherStats(all, graph, dimensions); doMatch('buildings', [ - 'building_yes', 'building_part', + 'building_yes', 'garage1', 'garage2', 'garage3', 'garage4' ]); @@ -318,6 +318,23 @@ describe('iD.rendererFeatures', function() { }); + it('matches building_parts', function () { + features.gatherStats(all, graph, dimensions); + + doMatch('building_parts', [ + 'building_part' + ]); + + dontMatch('building_parts', [ + 'building_yes', + 'garage1', 'garage2', 'garage3', 'garage4', + 'building_no', 'point_bar', 'motorway', 'service', 'path', + 'forest', 'boundary', 'boundary_member', 'water', 'railway', 'power_line', + 'motorway_construction', 'fence' + ]); + }); + + it('matches landuse', function () { features.gatherStats(all, graph, dimensions);