Rename trophies methods

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-06-22 20:03:53 -04:00
parent 33a14122bf
commit b70253ec48
2 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -734,7 +734,7 @@ func TestUserService_Unblock(t *testing.T) {
// assert.NoError(t, err)
// }
func TestUserService_GetTrophies(t *testing.T) {
func TestUserService_Trophies(t *testing.T) {
setup()
defer teardown()
@@ -745,12 +745,12 @@ func TestUserService_GetTrophies(t *testing.T) {
fmt.Fprint(w, blob)
})
trophies, _, err := client.User.GetTrophies(ctx)
trophies, _, err := client.User.Trophies(ctx)
assert.NoError(t, err)
assert.Equal(t, expectedTrophies, trophies)
}
func TestUserService_GetTrophiesOf(t *testing.T) {
func TestUserService_TrophiesOf(t *testing.T) {
setup()
defer teardown()
@@ -761,7 +761,7 @@ func TestUserService_GetTrophiesOf(t *testing.T) {
fmt.Fprint(w, blob)
})
trophies, _, err := client.User.GetTrophiesOf(ctx, "test123")
trophies, _, err := client.User.TrophiesOf(ctx, "test123")
assert.NoError(t, err)
assert.Equal(t, expectedTrophies, trophies)
}