@@ -20,7 +20,7 @@ describe('[source][lsp]', function()
2020 id = 1 ,
2121 name = ' mock-lsp' ,
2222 supports_method = function (method )
23- return method == vim . lsp . protocol . Methods . textDocument_documentSymbol
23+ return method == ' textDocument/documentSymbol '
2424 end ,
2525 }
2626 end )
@@ -77,7 +77,7 @@ describe('[source][lsp]', function()
7777 -- textDocument/documentSymbol request
7878 --- @diagnostic disable-next-line : assign-type-mismatch
7979 mock_client .request = function (_ , method , _ , handler )
80- if method ~= vim . lsp . protocol . Methods . textDocument_documentSymbol then
80+ if method ~= ' textDocument/documentSymbol ' then
8181 return
8282 end
8383
@@ -107,7 +107,7 @@ describe('[source][lsp]', function()
107107 },
108108 },
109109 }, {
110- method = vim . lsp . protocol . Methods . textDocument_documentSymbol ,
110+ method = ' textDocument/documentSymbol ' ,
111111 client_id = mock_client .id ,
112112 })
113113
@@ -159,7 +159,7 @@ describe('[source][lsp]', function()
159159 -- Mock a client that returns symbols with identical start positions
160160 --- @diagnostic disable-next-line : assign-type-mismatch
161161 mock_client .request = function (_ , method , _ , handler )
162- if method ~= vim . lsp . protocol . Methods . textDocument_documentSymbol then
162+ if method ~= ' textDocument/documentSymbol ' then
163163 return
164164 end
165165
@@ -197,7 +197,7 @@ describe('[source][lsp]', function()
197197 },
198198 },
199199 }, {
200- method = vim . lsp . protocol . Methods . textDocument_documentSymbol ,
200+ method = ' textDocument/documentSymbol ' ,
201201 client_id = mock_client .id ,
202202 })
203203
0 commit comments