@@ -475,15 +475,17 @@ describe('Agenda item', function()
475475 -- Time range on a date has precedence over same day date range
476476 date_with_time_range = Date .from_string (' 2021-06-13 Sun 18:00-19:30' )
477477 local date_with_time_range_end = Date .from_string (' 2021-06-13 Sun 20:00' )
478- headline = generate (string.format (' Some text <%s>--<%s>' , date_with_time_range :to_string (), date_with_time_range_end :to_string ()))
478+ headline = generate (
479+ string.format (' Some text <%s>--<%s>' , date_with_time_range :to_string (), date_with_time_range_end :to_string ())
480+ )
479481 agenda_item = AgendaItem :new (headline .dates [1 ], headline , date_with_time_range )
480482 assert .is .True (agenda_item .is_valid )
481483 assert .are .same (agenda_item .label , ' 18:00-19:30 ' )
482484 end )
483485
484- local range_start = Date .from_string (' 2021-06-13 Sun 13:30' )
485- local range_end = range_start :add ({ day = 4 , hour = 1 })
486- local headline = generate (string.format (' Some text <%s>--<%s>' , range_start :to_string (), range_end :to_string ()))
486+ local range_start = Date .from_string (' 2021-06-13 Sun 13:30' )
487+ local range_end = range_start :add ({ day = 4 , hour = 1 })
488+ local headline = generate (string.format (' Some text <%s>--<%s>' , range_start :to_string (), range_end :to_string ()))
487489
488490 it (' should not show scheduled DONE item if disabled in config' , function ()
489491 local future_day = Date .now ():add ({ day = 2 })
0 commit comments