fix(test): remove useless picker tests

This commit is contained in:
Barrett Ruth 2025-09-30 20:29:51 -04:00
parent 5588eae526
commit ec9bc8cb64

View file

@ -129,7 +129,6 @@ describe('cp.picker', function()
return '/tmp'
end
-- Mock vim.system to return success with problems
vim.system = function()
return {
wait = function()
@ -188,27 +187,4 @@ describe('cp.picker', function()
assert.equals(0, #problems)
end)
end)
describe('setup_problem', function()
it('calls cp.handle_command with correct arguments', function()
local cp = require('cp')
local called_with = nil
cp.handle_command = function(opts)
called_with = opts
end
picker.setup_problem('codeforces', '1951', 'a')
vim.wait(100, function()
return called_with ~= nil
end)
assert.is_table(called_with)
assert.is_table(called_with.fargs)
assert.equals('codeforces', called_with.fargs[1])
assert.equals('1951', called_with.fargs[2])
assert.equals('a', called_with.fargs[3])
end)
end)
end)