mirror of
https://github.com/NixOS/nix.git
synced 2024-11-23 15:22:27 +00:00
fixup! Add a default value for the settings
This commit is contained in:
parent
888f7afe9f
commit
a1e82ba450
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user