From b206472c4ac082d9492a346fbb063e31b69c4698 Mon Sep 17 00:00:00 2001 From: utensil Date: Wed, 23 Oct 2024 15:07:30 +0800 Subject: [PATCH] Add test for LeanRestartFile mapping --- spec/mappings_spec.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/mappings_spec.lua b/spec/mappings_spec.lua index 8300937f..ef63183c 100644 --- a/spec/mappings_spec.lua +++ b/spec/mappings_spec.lua @@ -34,6 +34,17 @@ describe('mappings', function() end end) ) + + it( + 'can restart file', + clean_buffer(function() + local restart_file_lhs = 'r' + local restart_file_rhs = 'LeanRestartFile' + + assert.is.not_nil(restart_file_rhs) + assert.is.same(restart_file_rhs, vim.fn.maparg(restart_file_lhs, 'n')) + end) + ) end) describe('for infoviews', function()