Skip to content

Commit

Permalink
fix(summary): use run consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
Rónán Carrigan committed Jun 3, 2022
1 parent e5af48c commit bfd4333
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/neotest/consumers/summary/component.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function SummaryComponent:render(canvas, tree, expanded, focused, indent)
canvas:add_mapping(
"attach",
async_func(function()
neotest.attach(position.id)
neotest.run.attach(position.id)
end)
)
canvas:add_mapping(
Expand All @@ -127,11 +127,11 @@ function SummaryComponent:render(canvas, tree, expanded, focused, indent)
)

canvas:add_mapping("stop", function()
neotest.stop({ position.id, adapter = self.adapter_id })
neotest.run.stop({ position.id, adapter = self.adapter_id })
end)

canvas:add_mapping("run", function()
neotest.run({ position.id, adapter = self.adapter_id })
neotest.run.run({ position.id, adapter = self.adapter_id })
end)

local state_icon, state_icon_group = self:_state_icon(position)
Expand Down

0 comments on commit bfd4333

Please sign in to comment.