@@ -292,6 +292,7 @@ describe('Date mappings', function()
292292 vim .cmd ([[ exe "norm \<S-UP>"]] )
293293 assert .are .same (' <' .. Date .today ():add ({ day = 1 }):to_string () .. ' >' , vim .fn .getline (7 ))
294294 -- make sure it updated back to todays date by opening the calendar and pressing . to go to today's date
295+ vim .fn .cursor (7 , 1 )
295296 vim .cmd (' norm ,oi..' )
296297 vim .cmd ([[ exe "norm \<CR>"]] )
297298 assert .are .same (' <' .. Date .today ():to_string () .. ' >' , vim .fn .getline (7 ))
@@ -311,7 +312,7 @@ describe('Date mappings', function()
311312 vim .fn .cursor (7 , 17 )
312313 vim .cmd (' norm ,oi.' )
313314 vim .cmd ([[ exe "norm \<CR>"]] )
314- assert .are .same (' <2021-09-16 Thu>--<' .. Date .today ():to_string () .. ' > ' , vim .fn .getline (7 ))
315+ assert .are .same (' <2021-09-16 Thu>--<' .. Date .today ():to_string () .. ' >' , vim .fn .getline (7 ))
315316 end )
316317
317318 it (' should insert plain inactive timestamp under cursor (org_time_stamp)' , function ()
@@ -334,6 +335,7 @@ describe('Date mappings', function()
334335 vim .cmd ([[ exe "norm \<S-UP>"]] )
335336 assert .are .same (' [' .. Date .today ():add ({ day = 1 }):to_string () .. ' ]' , vim .fn .getline (7 ))
336337 -- make sure it updated back to todays date by opening the calendar and pressing . to go to today's date
338+ vim .fn .cursor (7 , 1 )
337339 vim .cmd (' norm ,oi!.' )
338340 vim .cmd ([[ exe "norm \<CR>"]] )
339341 assert .are .same (' [' .. Date .today ():to_string () .. ' ]' , vim .fn .getline (7 ))
@@ -353,6 +355,6 @@ describe('Date mappings', function()
353355 vim .fn .cursor (7 , 17 )
354356 vim .cmd (' norm ,oi!' )
355357 vim .cmd ([[ exe "norm \<CR>"]] )
356- assert .are .same (' [2021-09-16 Thu]--[' .. Date .today ():to_string () .. ' ] ' , vim .fn .getline (7 ))
358+ assert .are .same (' [2021-09-16 Thu]--[' .. Date .today ():to_string () .. ' ]' , vim .fn .getline (7 ))
357359 end )
358360end )
0 commit comments