@@ -475,15 +475,17 @@ describe('Agenda item', function()
475
475
-- Time range on a date has precedence over same day date range
476
476
date_with_time_range = Date .from_string (' 2021-06-13 Sun 18:00-19:30' )
477
477
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
+ )
479
481
agenda_item = AgendaItem :new (headline .dates [1 ], headline , date_with_time_range )
480
482
assert .is .True (agenda_item .is_valid )
481
483
assert .are .same (agenda_item .label , ' 18:00-19:30 ' )
482
484
end )
483
485
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 ()))
487
489
488
490
it (' should not show scheduled DONE item if disabled in config' , function ()
489
491
local future_day = Date .now ():add ({ day = 2 })
0 commit comments