Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
gleam format
Browse files Browse the repository at this point in the history
  • Loading branch information
rawhat committed Oct 29, 2023
1 parent e4208b8 commit bb8ccb5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/lsp_client_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ pub fn it_should_parse_multiple_messages_test() {
}

pub fn it_should_parse_valid_hover_message_test() {
let msg = "{\"jsonrpc\":\"2.0\",\"id\":85,\"result\":{\"contents\":\"```gleam\\nInt\\n```\\n\",\"range\":{\"end\":{\"character\":7,\"line\":1},\"start\":{\"character\":4,\"line\":1}}}}"
let msg =
"{\"jsonrpc\":\"2.0\",\"id\":85,\"result\":{\"contents\":\"```gleam\\nInt\\n```\\n\",\"range\":{\"end\":{\"character\":7,\"line\":1},\"start\":{\"character\":4,\"line\":1}}}}"

client.decode(msg)
|> should.equal(Ok(client.Response(
id: 85,
result: client.Hover(
contents: Some("```gleam\nInt\n```\n")
)
result: client.Hover(contents: Some("```gleam\nInt\n```\n")),
)))
}

0 comments on commit bb8ccb5

Please sign in to comment.