@@ -286,9 +286,9 @@ test('route: routes Monaco with several (duration, distance, nodes) annotations
286286 assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . distance ; } ) , 'every leg has annotations for distance' ) ;
287287 assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . annotation . duration ; } ) , 'every leg has annotations for durations' ) ;
288288 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' ) ;
292292
293293 options . overview = 'full' ;
294294 osrm . route ( options , function ( err , full ) {
@@ -303,7 +303,7 @@ test('route: routes Monaco with several (duration, distance, nodes) annotations
303303} ) ;
304304
305305test ( 'route: routes Monaco with options' , function ( assert ) {
306- assert . plan ( 11 ) ;
306+ assert . plan ( 17 ) ;
307307 var osrm = new OSRM ( monaco_path ) ;
308308 var options = {
309309 coordinates : two_test_coordinates ,
@@ -322,6 +322,12 @@ test('route: routes Monaco with options', function(assert) {
322322 assert . ok ( first . routes [ 0 ] . legs [ 0 ] ) ;
323323 assert . ok ( first . routes [ 0 ] . legs . every ( l => { return l . steps . length > 0 ; } ) , 'every leg has steps' ) ;
324324 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' ) ;
325331
326332 options . overview = 'full' ;
327333 osrm . route ( options , function ( err , full ) {
0 commit comments