feat(junction): enable complex carriageway width editing
This commit is contained in:
1 parent
56647fcdaa
commit
c4bcbe8ff9
22 files changed
+449
-52
No files matched your search
@@ -76,4 +76,23 @@ describe('junction handle labels', () => {
|
||||
),
|
||||
).toBe('道路2 · 东进口 · 进口收口距离');
|
||||
});
|
||||
|
||||
it('names a complex carriageway by its source road', () => {
|
||||
expect(
|
||||
junctionLabelForHandle(
|
||||
handle(
|
||||
{
|
||||
type: 'cluster-carriageway',
|
||||
clusterId: 'cluster-1',
|
||||
carriagewayKey: 'cluster:cluster-1:carriageway:stable',
|
||||
sourceNodeIds: ['junction'],
|
||||
sourceRoadIds: ['road-north'],
|
||||
},
|
||||
'cluster-carriageway-width',
|
||||
),
|
||||
roads as unknown as Road[],
|
||||
[120, 30],
|
||||
),
|
||||
).toBe('创新大道 · 北进口 · 车行道宽度');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user