fix(junction): omit unsupported corner facilities
This commit is contained in:
1 parent
f56c0978b0
commit
b6f4dfeb0c
3 files changed
+30
-182
No files matched your search
@@ -103,4 +103,14 @@ assert.ok(
|
||||
),
|
||||
);
|
||||
assert.ok(complexGeometry.roadSurface.features.some((feature) => feature.properties?.kind === 'complex-approach'));
|
||||
const complexFeatures = Object.values(complexGeometry).flatMap((layer) => layer?.features || []);
|
||||
assert.equal(
|
||||
complexFeatures.some((feature) => feature.properties?.kind === 'complex-corner-island'),
|
||||
false,
|
||||
);
|
||||
assert.equal(
|
||||
complexFeatures.some((feature) => feature.properties?.kind === 'complex-corner-crosswalk'),
|
||||
false,
|
||||
);
|
||||
assert.ok(complexGeometry.diagnostics.some((item) => item.rule === 'complex-junction-corner-facilities-omitted'));
|
||||
console.log('road compiler package tests passed');
|
||||
Reference in new issue
Block a user