refactor(git/status): rework entries into typed variants on porcelain v2
This commit is contained in:
@@ -78,7 +78,7 @@ local function setup_sidebar_with_unstaged_file(
|
||||
)
|
||||
r:refresh()
|
||||
t.wait_for(function()
|
||||
return r.status and #r.status:by_kind("unstaged") > 0
|
||||
return r.status and #r.status:rows("unstaged") > 0
|
||||
end, "git status to report unstaged changes")
|
||||
|
||||
local entry_line = assert(
|
||||
@@ -108,7 +108,7 @@ t.test("stage with diff open: sidebar cursor stays put", function()
|
||||
vim.api.nvim_set_current_win(sidebar_win)
|
||||
t.press("s")
|
||||
t.wait_for(function()
|
||||
return #r.status:by_kind("staged") > 0
|
||||
return #r.status:rows("staged") > 0
|
||||
end, "stage to propagate to repo state")
|
||||
|
||||
t.eq(
|
||||
@@ -145,7 +145,7 @@ t.test(
|
||||
vim.api.nvim_set_current_win(sidebar_win)
|
||||
t.press("s")
|
||||
t.wait_for(function()
|
||||
return #r.status:by_kind("staged") > 0
|
||||
return #r.status:rows("staged") > 0
|
||||
end, "stage to propagate to repo state")
|
||||
|
||||
t.eq(
|
||||
|
||||
Reference in New Issue
Block a user