@@ -286,9 +286,9 @@ test('route: routes Monaco with several (duration, distance, nodes) annotations
286
286
assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . distance ; } ) , 'every leg has annotations for distance' ) ;
287
287
assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . duration ; } ) , 'every leg has annotations for durations' ) ;
288
288
assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . nodes ; } ) , 'every leg has annotations for nodes' ) ;
289
- assert . notOk ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . weight ; } ) , 'has no annotations for weight' )
290
- assert . notOk ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . datasources ; } ) , 'has no annotations for datasources' )
291
- assert . notOk ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . speed ; } ) , 'has no annotations for speed' )
289
+ assert . notOk ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . weight ; } ) , 'has no annotations for weight' ) ;
290
+ assert . notOk ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . datasources ; } ) , 'has no annotations for datasources' ) ;
291
+ assert . notOk ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . speed ; } ) , 'has no annotations for speed' ) ;
292
292
293
293
options . overview = 'full' ;
294
294
osrm . route ( options , function ( err , full ) {
@@ -303,7 +303,7 @@ test('route: routes Monaco with several (duration, distance, nodes) annotations
303
303
} ) ;
304
304
305
305
test ( 'route: routes Monaco with options' , function ( assert ) {
306
- assert . plan ( 11 ) ;
306
+ assert . plan ( 17 ) ;
307
307
var osrm = new OSRM ( monaco_path ) ;
308
308
var options = {
309
309
coordinates : two_test_coordinates ,
@@ -322,6 +322,12 @@ test('route: routes Monaco with options', function(assert) {
322
322
assert . ok ( first . routes [ 0 ] . legs [ 0 ] ) ;
323
323
assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . steps . length > 0 ; } ) , 'every leg has steps' ) ;
324
324
assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation ; } ) , 'every leg has annotations' ) ;
325
+ assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . distance ; } ) , 'every leg has annotations for distance' ) ;
326
+ assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . duration ; } ) , 'every leg has annotations for durations' ) ;
327
+ assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . nodes ; } ) , 'every leg has annotations for nodes' ) ;
328
+ assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . weight ; } ) , 'every leg has annotations for weight' ) ;
329
+ assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . datasources ; } ) , 'every leg has annotations for datasources' ) ;
330
+ assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . speed ; } ) , 'every leg has annotations for speed' ) ;
325
331
326
332
options . overview = 'full' ;
327
333
osrm . route ( options , function ( err , full ) {
0 commit comments