mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
style: Fix JSON indent style in C++ code (#2485)
This commit is contained in:
@@ -38,7 +38,7 @@ TEST(VerifyConfigTest, ValidConfig)
|
||||
{
|
||||
// used to Verify Config test
|
||||
static constexpr auto kVALID_JSON_DATA = R"JSON({
|
||||
"server": {
|
||||
"server": {
|
||||
"ip": "0.0.0.0",
|
||||
"port": 51233
|
||||
}
|
||||
@@ -58,11 +58,11 @@ TEST(VerifyConfigTest, InvalidJsonFile)
|
||||
{
|
||||
// invalid json because extra "," after 51233
|
||||
static constexpr auto kINVALID_JSON = R"JSON({
|
||||
"server": {
|
||||
"ip": "0.0.0.0",
|
||||
"port": 51233,
|
||||
}
|
||||
})JSON";
|
||||
"server": {
|
||||
"ip": "0.0.0.0",
|
||||
"port": 51233,
|
||||
}
|
||||
})JSON";
|
||||
auto const tmpConfigFile = TmpFile(kINVALID_JSON);
|
||||
|
||||
EXPECT_FALSE(parseConfig(tmpConfigFile.path));
|
||||
|
||||
Reference in New Issue
Block a user