From f94ae157c793a7a1dd34c319fcbed5e91218df15 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 30 Sep 2025 20:58:42 -0400 Subject: [PATCH] fix(test): actually test picking in picker specs --- spec/fzf_lua_spec.lua | 7 +++++++ spec/telescope_spec.lua | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/spec/fzf_lua_spec.lua b/spec/fzf_lua_spec.lua index 7b66c2b..5dcaafd 100644 --- a/spec/fzf_lua_spec.lua +++ b/spec/fzf_lua_spec.lua @@ -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) diff --git a/spec/telescope_spec.lua b/spec/telescope_spec.lua index 32f0a93..23e355e 100644 --- a/spec/telescope_spec.lua +++ b/spec/telescope_spec.lua @@ -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)