Skip to content

Commit

Permalink
test: adapt to changes in the ripgrep command structure (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas authored Jan 16, 2025
1 parent 0882f96 commit d93f974
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/blink-ripgrep/get_command_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ describe("get_command", function()

-- don't compare the last item (the directory) as that changes depending on
-- the test environment (such as individual developers' machines or ci)
table.remove(cmd)
assert.are_same(cmd, {
table.remove(cmd.command)
assert.are_same(cmd.command, {
"rg",
"--no-config",
"--json",
Expand All @@ -39,8 +39,8 @@ describe("get_command", function()
---@diagnostic disable-next-line: missing-fields
local cmd = RipgrepCommand.get_command("hello", plugin.config)

table.remove(cmd)
assert.are_same(cmd, {
table.remove(cmd.command)
assert.are_same(cmd.command, {
"rg",
"--no-config",
"--json",
Expand All @@ -58,8 +58,8 @@ describe("get_command", function()
---@diagnostic disable-next-line: missing-fields
local cmd = RipgrepCommand.get_command("hello", plugin.config)

table.remove(cmd)
assert.are_same(cmd, {
table.remove(cmd.command)
assert.are_same(cmd.command, {
"rg",
"--no-config",
"--json",
Expand All @@ -77,8 +77,8 @@ describe("get_command", function()
---@diagnostic disable-next-line: missing-fields
local cmd = RipgrepCommand.get_command("hello", plugin.config)

table.remove(cmd)
assert.are_same(cmd, {
table.remove(cmd.command)
assert.are_same(cmd.command, {
"rg",
"--no-config",
"--json",
Expand Down

0 comments on commit d93f974

Please sign in to comment.