refactor: use stretchr/testify, replace ExpectBytesEqual and ExpectDeepEqual with ExpectEqual in tests

This commit is contained in:
yusing
2025-03-28 08:45:06 +08:00
parent 2f476603d3
commit 232f720e77
18 changed files with 65 additions and 132 deletions

View File

@@ -32,5 +32,5 @@ func TestOverrideItem(t *testing.T) {
overrides := GetOverrideConfig()
overrides.OverrideItem(a.Alias, want)
got := a.GetOverride(a.Alias)
ExpectDeepEqual(t, got, want)
ExpectEqual(t, got, want)
}

View File

@@ -118,7 +118,7 @@ func TestIconURL(t *testing.T) {
} else {
tc.wantValue.FullValue = tc.input
ExpectNoError(t, err)
ExpectDeepEqual(t, u, tc.wantValue)
ExpectEqual(t, u, tc.wantValue)
}
})
}