This commit is contained in:
Barrett Ruth 2026-02-25 13:06:20 -05:00
parent 7ebfcc63c3
commit 9c5d57bece
7 changed files with 80 additions and 53 deletions

View file

@ -151,11 +151,14 @@ describe('recur', function()
it('completion mode advances from today', function()
local today = os.date('*t') --[[@as osdate]]
local expected = os.date('%Y-%m-%d', os.time({
year = today.year,
month = today.month,
day = today.day + 7,
}))
local expected = os.date(
'%Y-%m-%d',
os.time({
year = today.year,
month = today.month,
day = today.day + 7,
})
)
local result = recur.next_due('2020-01-01', 'weekly', 'completion')
assert.are.equal(expected, result)
end)