Skip to content

Commit

Permalink
Add test for LeanRestartFile mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 23, 2024
1 parent cf8183a commit b206472
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/mappings_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ describe('mappings', function()
end
end)
)

it(
'can restart file',
clean_buffer(function()
local restart_file_lhs = '<LocalLeader>r'
local restart_file_rhs = '<Cmd>LeanRestartFile<CR>'

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()
Expand Down

0 comments on commit b206472

Please sign in to comment.