mirror of
https://github.com/freitass/todo.txt-vim.git
synced 2025-11-14 21:03:46 -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:here = expand('<sfile>:p:h')
|
||||||
let s:tc = unittest#testcase#new('Mask As Done',
|
let s:context = todo#txt#__context__()
|
||||||
\ { 'data': s:here . '/tc_mark_as_done.todo.txt' })
|
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")
|
let s:TODAY = strftime("%Y-%m-%d")
|
||||||
|
|
||||||
@@ -18,7 +19,7 @@ let s:ALL_TASKS_DONE = [
|
|||||||
|
|
||||||
function! s:tc.test_mark_as_done()
|
function! s:tc.test_mark_as_done()
|
||||||
call self.data.goto('lorem_ipsum')
|
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'))
|
call self.assert_equal(s:FIRST_TASK_DONE, self.data.get('lorem_ipsum'))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user