diff --git a/spec/command_parsing_spec.lua b/spec/command_parsing_spec.lua index d3221ea..c099ccb 100644 --- a/spec/command_parsing_spec.lua +++ b/spec/command_parsing_spec.lua @@ -12,16 +12,11 @@ describe('cp command parsing', function() } package.loaded['cp.log'] = mock_logger - local mock_async_setup = { - setup_contest_async = function() end, - handle_full_setup_async = function() end, - setup_problem_async = function() end, - } - package.loaded['cp.async.setup'] = mock_async_setup local mock_setup = { set_platform = function() return true end, + setup_contest = function() end, navigate_problem = function() end, } package.loaded['cp.setup'] = mock_setup @@ -33,6 +28,9 @@ describe('cp command parsing', function() get_contest_id = function() return 'abc123' end, + is_run_panel_active = function() + return false + end, } package.loaded['cp.state'] = mock_state @@ -53,7 +51,6 @@ describe('cp command parsing', function() after_each(function() package.loaded['cp.log'] = nil - package.loaded['cp.async.setup'] = nil package.loaded['cp.setup'] = nil package.loaded['cp.state'] = nil end)