test: fix test to actually assert something

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2023-04-06 11:05:32 +02:00
parent d2cec09be1
commit 13fafb831b
No known key found for this signature in database
GPG key ID: 31AB0439F4C5C90E

View file

@ -9,7 +9,7 @@ import (
"bytes"
"encoding/json"
"io"
"io/ioutil" //nolint:staticcheck
"io/ioutil"
"os"
"os/exec"
"path"
@ -874,8 +874,10 @@ func TestAliasesOfAliases(t *testing.T) {
}
func TestRecursiveAliases(t *testing.T) {
Set("baz", "bat")
RegisterAlias("Baz", "Roo")
RegisterAlias("Roo", "baz")
assert.Equal(t, "bat", Get("Baz"))
}
func TestUnmarshal(t *testing.T) {