diff --git a/test/server_test.rb b/test/server_test.rb index 1301c8b59..d320b6747 100644 --- a/test/server_test.rb +++ b/test/server_test.rb @@ -26,7 +26,7 @@ def test_initialize_enabled_features_with_array result = find_message(RubyLsp::Result, id: 1) hash = JSON.parse(result.response.to_json) - capabilities = hash["capabilities"] + capabilities = hash["capabilities"].select { _2 } # TextSynchronization + encodings + semanticHighlighting + range formatting + experimental assert_equal(5, capabilities.length)