feat: rename

This commit is contained in:
Barrett Ruth 2026-02-24 15:21:44 -05:00
parent c69a3957c8
commit 78a275d096
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
21 changed files with 191 additions and 191 deletions

View file

@ -1,19 +1,19 @@
require('spec.helpers')
local config = require('todo.config')
local config = require('pending.config')
describe('parse', function()
before_each(function()
vim.g.todo = nil
vim.g.pending = nil
config.reset()
end)
after_each(function()
vim.g.todo = nil
vim.g.pending = nil
config.reset()
end)
local parse = require('todo.parse')
local parse = require('pending.parse')
describe('body', function()
it('returns plain description when no metadata', function()
@ -73,7 +73,7 @@ describe('parse', function()
end)
it('uses configurable date syntax', function()
vim.g.todo = { date_syntax = 'by' }
vim.g.pending = { date_syntax = 'by' }
config.reset()
local desc, meta = parse.body('Buy milk by:2026-03-15')
assert.are.equal('Buy milk', desc)
@ -81,7 +81,7 @@ describe('parse', function()
end)
it('ignores old syntax when date_syntax is changed', function()
vim.g.todo = { date_syntax = 'by' }
vim.g.pending = { date_syntax = 'by' }
config.reset()
local desc, meta = parse.body('Buy milk due:2026-03-15')
assert.are.equal('Buy milk due:2026-03-15', desc)