Skip to content

Commit ebaf584

Browse files
committed
refactor(test): fix formatting of JSON in tests
1 parent 3f366bc commit ebaf584

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/test-lsp-server.cpp

+16-16
Original file line numberDiff line numberDiff line change
@@ -1636,16 +1636,16 @@ TEST_F(test_linting_lsp_server,
16361636
byte_buffer& notification_json = outgoing_messages.new_message();
16371637
notification_json.append_copy(
16381638
concat(u8R"({
1639-
"method": "textDocument/publishDiagnostics",
1640-
"params": {
1641-
"uri": ")"_sv,
1639+
"method": "textDocument/publishDiagnostics",
1640+
"params": {
1641+
"uri": ")"_sv,
16421642
this->fs.file_uri_prefix_8(),
16431643
u8R"(test.js",
1644-
"version": 10,
1645-
"diagnostics": []
1646-
},
1647-
"jsonrpc": "2.0"
1648-
})"_sv));
1644+
"version": 10,
1645+
"diagnostics": []
1646+
},
1647+
"jsonrpc": "2.0"
1648+
})"_sv));
16491649
};
16501650
this->client->messages.clear();
16511651

@@ -1765,16 +1765,16 @@ TEST_F(test_linting_lsp_server,
17651765
byte_buffer& notification_json = outgoing_messages.new_message();
17661766
notification_json.append_copy(
17671767
concat(u8R"({
1768-
"method": "textDocument/publishDiagnostics",
1769-
"params": {
1770-
"uri": ")"_sv,
1768+
"method": "textDocument/publishDiagnostics",
1769+
"params": {
1770+
"uri": ")"_sv,
17711771
this->fs.file_uri_prefix_8(),
17721772
u8R"(test.js",
1773-
"version": 10,
1774-
"diagnostics": []
1775-
},
1776-
"jsonrpc": "2.0"
1777-
})"_sv));
1773+
"version": 10,
1774+
"diagnostics": []
1775+
},
1776+
"jsonrpc": "2.0"
1777+
})"_sv));
17781778
};
17791779
this->server->append(
17801780
make_message(concat(u8R"({

0 commit comments

Comments
 (0)