refactor(git): drop :Ghistory buffer in favor of :G! for full output
This commit is contained in:
@@ -610,30 +610,6 @@ t.test(
|
||||
end
|
||||
)
|
||||
|
||||
t.test("streaming output buffer collects runs (failure path)", function()
|
||||
make_repo({ a = "x" })
|
||||
with_echo_stub(function(calls)
|
||||
cmd.run({ "fetch", "nonexistent" })
|
||||
t.wait_for(function()
|
||||
return has_status(calls, "failed")
|
||||
end, "failed progress notification", 5000)
|
||||
end)
|
||||
require("git.history").open()
|
||||
local buf = vim.api.nvim_get_current_buf()
|
||||
local lines = vim.api.nvim_buf_get_lines(buf, 0, -1, false)
|
||||
local found_header, found_fatal = false, false
|
||||
for _, l in ipairs(lines) do
|
||||
if l:match("^%$ git fetch nonexistent$") then
|
||||
found_header = true
|
||||
end
|
||||
if l:match("fatal:") then
|
||||
found_fatal = true
|
||||
end
|
||||
end
|
||||
t.truthy(found_header, "expected '$ git fetch nonexistent' header")
|
||||
t.truthy(found_fatal, "expected fatal: line in output buffer")
|
||||
end)
|
||||
|
||||
t.test(
|
||||
"streaming :G! fetch (bang) opens preview window with terminal buffer",
|
||||
function()
|
||||
|
||||
Reference in New Issue
Block a user