diff --git a/spec/diff_spec.lua b/spec/diff_spec.lua index b8fcfd9..7a73c5d 100644 --- a/spec/diff_spec.lua +++ b/spec/diff_spec.lua @@ -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 = { diff --git a/spec/views_spec.lua b/spec/views_spec.lua index 9ba12f9..0f5e5e5 100644 --- a/spec/views_spec.lua +++ b/spec/views_spec.lua @@ -116,7 +116,7 @@ describe('views', function() assert.are.equal('/1/ My task', task_line) end) - it('formats priority task lines as /ID/ ! description', function() + it('formats priority task lines as /ID/ [N] description', function() store.add({ description = 'Important', category = 'Inbox', priority = 1 }) local lines, meta = views.category_view(store.active_tasks()) local task_line @@ -125,7 +125,7 @@ describe('views', function() task_line = lines[i] end end - assert.are.equal('/1/ ! Important', task_line) + assert.are.equal('/1/ [1] Important', task_line) end) it('sets LineMeta type=header for header lines with correct category', function()