mirror of
https://github.com/spf13/viper
synced 2025-05-07 04:37:20 +00:00
fix test bug
This commit is contained in:
parent
e270d7d00f
commit
e59ebc4c2d
1 changed files with 1 additions and 0 deletions
|
@ -323,6 +323,7 @@ func TestAliasInConfigFile(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestUnSetAliases(t *testing.T) {
|
||||
Set("age", 40)
|
||||
RegisterAlias("years", "age")
|
||||
assert.Equal(t, 40, Get("years"))
|
||||
UnregisterAlias("years")
|
||||
|
|
Loading…
Add table
Reference in a new issue