@@ -92,12 +92,12 @@ describe('Agenda item', function()
9292 assert .is .Nil (agenda_item :get_priority_hlgroup ())
9393 assert .are .same (' In 9 d.:' , agenda_item .label )
9494
95- -- future without warning within the default warning days and less than 6 days (highlights as warning)
95+ -- future without warning within the default warning days and less than 6 days (highlights as upcoming warning)
9696 headline = generate (string.format (' DEADLINE: <%s>' , today :add ({ day = 6 }):to_string ()))
9797 agenda_item = AgendaItem :new (headline :get_all_dates ()[1 ], headline , today )
9898 assert .is .True (agenda_item .is_valid )
9999 assert .is .same (hl_map .TODO , agenda_item :get_todo_hlgroup ())
100- assert .is .same (hl_map .warning , agenda_item :get_hlgroup ())
100+ assert .is .same (hl_map .upcoming_deadline , agenda_item :get_hlgroup ())
101101 assert .is .Nil (agenda_item :get_priority_hlgroup ())
102102 assert .are .same (' In 6 d.:' , agenda_item .label )
103103
@@ -108,12 +108,12 @@ describe('Agenda item', function()
108108 assert .is .same (hl_map .TODO , agenda_item :get_todo_hlgroup ())
109109 assert .are .same (' In 9 d.:' , agenda_item .label )
110110
111- -- future with warning within the defined warning period and less than 6 days (highlights as warning )
111+ -- future with warning within the defined warning period and less than 6 days (highlights as upcoming deadline )
112112 headline = generate (string.format (' DEADLINE: <%s -10d>' , today :add ({ day = 6 }):to_string ()))
113113 agenda_item = AgendaItem :new (headline :get_all_dates ()[1 ], headline , today )
114114 assert .is .True (agenda_item .is_valid )
115115 assert .is .same (hl_map .TODO , agenda_item :get_todo_hlgroup ())
116- assert .is .same (hl_map .warning , agenda_item :get_hlgroup ())
116+ assert .is .same (hl_map .upcoming_deadline , agenda_item :get_hlgroup ())
117117 assert .is .Nil (agenda_item :get_priority_hlgroup ())
118118 assert .are .same (' In 6 d.:' , agenda_item .label )
119119
0 commit comments