Skip to content

Commit

Permalink
Ensure command_args is a list
Browse files Browse the repository at this point in the history
  • Loading branch information
MisanthropicBit committed Mar 9, 2024
1 parent d3d7ae7 commit d03e1fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/neotest-mocha/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ function Adapter.build_spec(args)
path = pos.path,
}

vim.list_extend(command, command_args)
if vim.tbl_islist(command_args) then
vim.list_extend(command, command_args)
end

return {
command = command,
Expand Down

0 comments on commit d03e1fa

Please sign in to comment.