diff options
author | regnat <rg@regnat.ovh> | 2020-09-14 15:35:17 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2020-09-16 13:53:09 +0200 |
commit | a1e82ba450f274966dc45375b42b5d4413fff77d (patch) | |
tree | e23df664ad71ef7a83d11b0b632300755f7a2760 /src/libutil | |
parent | 888f7afe9fe1a69c27bcc15a3e0fb0be26a11172 (diff) |
fixup! Add a default value for the settings
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/tests/config.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/tests/config.cc b/src/libutil/tests/config.cc index c5abefe11..c7777a21f 100644 --- a/src/libutil/tests/config.cc +++ b/src/libutil/tests/config.cc @@ -161,7 +161,7 @@ namespace nix { Setting<std::string> setting{&config, "", "name-of-the-setting", "description"}; setting.assign("value"); - ASSERT_EQ(config.toJSON().dump(), R"#({"name-of-the-setting":{"aliases":[],"description":"description\n","value":"value"}})#"); + ASSERT_EQ(config.toJSON().dump(), R"#({"name-of-the-setting":{"aliases":[],"defaultValue":"","description":"description\n","value":"value"}})#"); } TEST(Config, setSettingAlias) { |