Skip to content

Commit

Permalink
Make sure all specified infoviews were actually checked in `infoview_…
Browse files Browse the repository at this point in the history
…check`.
  • Loading branch information
rish987 committed Jul 26, 2021
1 parent 9c6eac8 commit d4c1ed0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/tests/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ local function infoview_check(list)
this_info.prev_check = check
end

-- make sure all specified infoviews were hit
for id, check in pairs(list) do assert.are_equal(check, infoview._by_id[id].prev_check) end

assert.update_wins(opened_wins, closed_wins)

return true
Expand Down

0 comments on commit d4c1ed0

Please sign in to comment.