mirror of
https://github.com/freitass/todo.txt-vim.git
synced 2025-11-16 13:53:47 -05:00
Fixes 'mark as done' test
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
let s:here = expand('<sfile>:p:h')
|
||||
let s:tc = unittest#testcase#new('Mask As Done',
|
||||
\ { 'data': s:here . '/tc_mark_as_done.todo.txt' })
|
||||
let s:context = todo#txt#__context__()
|
||||
let s:context['data'] = s:here . '/tc_mark_as_done.todo.txt'
|
||||
let s:tc = unittest#testcase#new('Mark As Done', s:context)
|
||||
|
||||
let s:TODAY = strftime("%Y-%m-%d")
|
||||
|
||||
@@ -18,7 +19,7 @@ let s:ALL_TASKS_DONE = [
|
||||
|
||||
function! s:tc.test_mark_as_done()
|
||||
call self.data.goto('lorem_ipsum')
|
||||
call self.data.execute('call todo#txt#mark_as_done()')
|
||||
call todo#txt#mark_as_done()
|
||||
call self.assert_equal(s:FIRST_TASK_DONE, self.data.get('lorem_ipsum'))
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user