From 2d5306b55ca939a6ec5a298d92c59ae7de758942 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 14 Jan 2025 20:11:42 +0800 Subject: [PATCH] chores: more test for debounce (#1079) --- tests/utils/init_spec.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/utils/init_spec.lua b/tests/utils/init_spec.lua index 295217e..ba7b85e 100644 --- a/tests/utils/init_spec.lua +++ b/tests/utils/init_spec.lua @@ -154,6 +154,9 @@ describe("Utils", function() -- Second call should cancel first debounced(233) + -- Count should still be 0 + assert.equals(0, count) + -- Wait for timeout vim.wait(200, function() return false end)