mirror of
https://github.com/freitass/todo.txt-vim.git
synced 2025-11-12 20:03:47 -05:00
Fixes 'date' test
This commit is contained in:
@@ -24,7 +24,7 @@ let s:DATE_INSERTED_AFTER_PRIORITY_VISUAL = [
|
||||
|
||||
function! s:tc.test_insert_date_normal_mode()
|
||||
call self.data.goto('lorem_ipsum')
|
||||
call self.data.execute('call todo#txt#prepend_date()', 'lorem_ipsum')
|
||||
call todo#txt#prepend_date()
|
||||
call self.assert_equal(s:DATE_INSERTED, self.data.get('lorem_ipsum'))
|
||||
endfunction
|
||||
|
||||
@@ -40,13 +40,11 @@ function! s:tc.test_insert_date_visual_mode()
|
||||
endfunction
|
||||
|
||||
function! s:tc.test_insert_date_after_priority_normal_mode()
|
||||
call self.data.goto('date_after_priority')
|
||||
call self.data.execute('call todo#txt#prepend_date()', 'date_after_priority')
|
||||
call self.assert_equal(s:DATE_INSERTED_AFTER_PRIORITY, self.data.get('date_after_priority'))
|
||||
endfunction
|
||||
|
||||
function! s:tc.test_insert_date_after_priority_visual_mode()
|
||||
call self.data.goto('date_after_priority_visual')
|
||||
call self.data.visual_execute('call todo#txt#prepend_date()', 'date_after_priority_visual')
|
||||
call self.assert_equal(s:DATE_INSERTED_AFTER_PRIORITY_VISUAL, self.data.get('date_after_priority_visual'))
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user