Skip to content

Commit ca9adcf

Browse files
committed
test(operators): improve "remaps gx" test after Nightly changes
1 parent 9216cd3 commit ca9adcf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_operators.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,13 @@ end
140140
T['setup()']['remaps built-in `gx` mappings'] = function()
141141
if child.fn.has('nvim-0.10') == 0 then MiniTest.skip('Neovim<0.10 does not have built-in `gx` mappings') end
142142

143+
-- Mock functions used to compute and show URI at cursor
144+
child.lua('vim.lsp.buf_request_sync = function() return {} end')
143145
child.lua('vim.ui.open = function() _G.n = (_G.n or 0) + 1 end')
146+
147+
set_lines({ 'https://nvim-mini.org' })
148+
set_cursor(1, 0)
149+
144150
local validate = function(keys, ref_n)
145151
type_keys(keys)
146152
eq(child.lua_get('_G.n'), ref_n)

0 commit comments

Comments
 (0)