fix(test): actually test picking in picker specs

This commit is contained in:
Barrett Ruth 2025-09-30 20:58:42 -04:00
parent a54e6398cf
commit f94ae157c7
2 changed files with 14 additions and 0 deletions

View file

@ -28,4 +28,11 @@ describe('cp.fzf_lua', function()
assert.is_function(fzf_lua_cp.pick)
end)
end)
describe('basic running', function()
it('can run and open the picker with :CP pick', function()
local cp = require('cp')
assert.has_no_errors(cp.handle_command({ fargs = { 'pick' } }))
end)
end)
end)

View file

@ -75,4 +75,11 @@ describe('cp.telescope', function()
assert.is_function(telescope_cp.pick)
end)
end)
describe('basic running', function()
it('can run and open the picker with :CP pick', function()
local cp = require('cp')
assert.has_no_errors(cp.handle_command({ fargs = { 'pick' } }))
end)
end)
end)