From fe90c0b95d1321412d17cf9d6ac7ce6ddedeb9ce Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 30 Sep 2025 21:15:15 -0400 Subject: [PATCH] fix test --- spec/fzf_lua_spec.lua | 4 +++- spec/telescope_spec.lua | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/fzf_lua_spec.lua b/spec/fzf_lua_spec.lua index a6b4ba8..a134fcb 100644 --- a/spec/fzf_lua_spec.lua +++ b/spec/fzf_lua_spec.lua @@ -32,7 +32,9 @@ describe('cp.fzf_lua', function() 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' } })) + assert.has_no_errors(function() + cp.handle_command({ fargs = { 'pick' } }) + end) end) end) end) diff --git a/spec/telescope_spec.lua b/spec/telescope_spec.lua index 73321a9..bc4876a 100644 --- a/spec/telescope_spec.lua +++ b/spec/telescope_spec.lua @@ -79,7 +79,9 @@ describe('cp.telescope', function() 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' } })) + assert.has_no_errors(function() + cp.handle_command({ fargs = { 'pick' } }) + end) end) end) end)