From 2125cf136b64dc02faad0da57e83a37f11b704ad Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Sat, 13 Apr 2024 16:47:37 -0700 Subject: [PATCH] tests: update expectations for cursor setting We now use pcall to set the cursor position so out of bounds settings are ignored. --- lua/harpoon/test/harpoon_spec.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/harpoon/test/harpoon_spec.lua b/lua/harpoon/test/harpoon_spec.lua index 2dca4c09..fc8a01c6 100644 --- a/lua/harpoon/test/harpoon_spec.lua +++ b/lua/harpoon/test/harpoon_spec.lua @@ -128,7 +128,7 @@ describe("harpoon", function() col = 3, }, { row = 4, - col = 3, + col = 2, }) end) @@ -138,7 +138,7 @@ describe("harpoon", function() col = 4, }, { row = 4, - col = 3, + col = 2, }) end) @@ -148,7 +148,7 @@ describe("harpoon", function() col = 4, }, { row = 4, - col = 3, + col = 2, }) end)