test: update priority format assertions from ! to [N]
Problem: fc4a47a changed the priority display format from '! ' to
'[N] ' in views.lua and diff.lua but left two existing test
assertions and their descriptions using the old format, causing
both to fail.
Solution: update the input line in diff parse_buffer test, update
the expected string and description names in views category_view
test, and rename the diff.apply description to match the new idiom.
This commit is contained in:
parent
ade541e6e3
commit
0ede508af8
2 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ describe('diff', function()
|
|||
local lines = {
|
||||
'School',
|
||||
'/1/ Do homework',
|
||||
'/2/ ! Read chapter 5',
|
||||
'/2/ [1] Read chapter 5',
|
||||
'',
|
||||
'Errands',
|
||||
'/3/ Buy groceries',
|
||||
|
|
@ -168,7 +168,7 @@ describe('diff', function()
|
|||
assert.is_nil(task.due)
|
||||
end)
|
||||
|
||||
it('clears priority when ! is removed from buffer line', function()
|
||||
it('clears priority when [N] is removed from buffer line', function()
|
||||
store.add({ description = 'Task name', priority = 1 })
|
||||
store.save()
|
||||
local lines = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue