ci: formt
This commit is contained in:
parent
30119cbabf
commit
1f4a43fc01
1 changed files with 6 additions and 12 deletions
|
|
@ -28,10 +28,8 @@ describe('edit', function()
|
||||||
pending.edit(tostring(t.id), 'due:tomorrow')
|
pending.edit(tostring(t.id), 'due:tomorrow')
|
||||||
local updated = store.get(t.id)
|
local updated = store.get(t.id)
|
||||||
local today = os.date('*t') --[[@as osdate]]
|
local today = os.date('*t') --[[@as osdate]]
|
||||||
local expected = os.date(
|
local expected =
|
||||||
'%Y-%m-%d',
|
os.date('%Y-%m-%d', os.time({ year = today.year, month = today.month, day = today.day + 1 }))
|
||||||
os.time({ year = today.year, month = today.month, day = today.day + 1 })
|
|
||||||
)
|
|
||||||
assert.are.equal(expected, updated.due)
|
assert.are.equal(expected, updated.due)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
@ -264,10 +262,8 @@ describe('edit', function()
|
||||||
pending.edit(tostring(t.id), 'by:tomorrow')
|
pending.edit(tostring(t.id), 'by:tomorrow')
|
||||||
local updated = store.get(t.id)
|
local updated = store.get(t.id)
|
||||||
local today = os.date('*t') --[[@as osdate]]
|
local today = os.date('*t') --[[@as osdate]]
|
||||||
local expected = os.date(
|
local expected =
|
||||||
'%Y-%m-%d',
|
os.date('%Y-%m-%d', os.time({ year = today.year, month = today.month, day = today.day + 1 }))
|
||||||
os.time({ year = today.year, month = today.month, day = today.day + 1 })
|
|
||||||
)
|
|
||||||
assert.are.equal(expected, updated.due)
|
assert.are.equal(expected, updated.due)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
@ -301,10 +297,8 @@ describe('edit', function()
|
||||||
pending.edit(tostring(t.id), 'due:tomorrow@14:00')
|
pending.edit(tostring(t.id), 'due:tomorrow@14:00')
|
||||||
local updated = store.get(t.id)
|
local updated = store.get(t.id)
|
||||||
local today = os.date('*t') --[[@as osdate]]
|
local today = os.date('*t') --[[@as osdate]]
|
||||||
local expected = os.date(
|
local expected =
|
||||||
'%Y-%m-%d',
|
os.date('%Y-%m-%d', os.time({ year = today.year, month = today.month, day = today.day + 1 }))
|
||||||
os.time({ year = today.year, month = today.month, day = today.day + 1 })
|
|
||||||
)
|
|
||||||
assert.are.equal(expected .. 'T14:00', updated.due)
|
assert.are.equal(expected .. 'T14:00', updated.due)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue