test: add some tests for SafeState autocommand

This commit is contained in:
zeertzjq
2023-08-21 13:45:26 +08:00
parent 4b0a13b455
commit 6aa29d0f01
2 changed files with 57 additions and 1 deletions

View File

@@ -17,7 +17,6 @@ describe('state() function', function()
function _G.Get_state_mode()
_G.res = { vim.fn.state(), vim.api.nvim_get_mode().mode:sub(1, 1) }
end
function _G.Run_timer()
local timer = vim.uv.new_timer()
timer:start(0, 0, function()