From d4c1ed09673852c24df95704afec58dd30f2f54f Mon Sep 17 00:00:00 2001 From: Rishikesh Vaishnav Date: Mon, 26 Jul 2021 11:53:55 -0700 Subject: [PATCH] Make sure all specified infoviews were actually checked in `infoview_check`. --- lua/tests/helpers.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/tests/helpers.lua b/lua/tests/helpers.lua index 3d078f59..5b435fab 100644 --- a/lua/tests/helpers.lua +++ b/lua/tests/helpers.lua @@ -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