remove unused entities from test

This commit is contained in:
Max Grossman
2018-12-17 17:39:47 -05:00
parent 8f33a85a12
commit 64f2d913e8
2 changed files with 1 additions and 12 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ export default {
if (this.geometryMatches(entity, graph) && this.matches(entity)) {
var type = Object.keys(selector).indexOf('error') > -1 ? 'error' : 'warning';
warnings.push({
id: 'mapcss_' + type,
severity: type,
message: selector[type],
entity: entity
});
-11
View File
@@ -357,17 +357,6 @@ describe('maprules', function() {
error: '\'suburban road\' structure tag cannot be \'bridge\' or \'tunnel\''
}
];
entities = [
iD.Entity({ type: 'node', tags: { amenity: 'marketplace' }}),
iD.Way({ tags: { building: 'house', amenity: 'clinic' }, nodes: [ 'a', 'b', 'c', 'a' ]}),
iD.Entity({ type: 'node', tags: { man_made: 'tower', 'tower:type': 'communication', height: 5 }}),
iD.Entity({ type: 'node', tags: { man_made: 'tower', height: 6 }}),
iD.Entity({ type: 'node', tags: { man_made: 'tower', height: 9 }}),
iD.Entity({ type: 'node', tags: { man_made: 'tower', height: 5 }}),
iD.Entity({ type: 'node', tags: { man_made: 'tower', height: 10 }}),
iD.Way({ tags: { amenity: 'clinic', emergency: 'definitely' }, nodes: [ 'd', 'e', 'f', 'd' ]}),
iD.Way({ tags: { highway: 'residential', structure: 'bridge' }}),
];
iD.serviceMapRules.clearRules();
selectors.forEach(function(selector) { iD.serviceMapRules.addRule(selector); });