mirror of
https://github.com/sstent/go-garminconnect.git
synced 2026-02-03 13:01:57 +00:00
partital fix - checkpoint 3 - need help
This commit is contained in:
@@ -86,8 +86,9 @@ func TestGetUserProfile(t *testing.T) {
|
||||
profile, err := client.GetUserProfile(context.Background())
|
||||
|
||||
if tt.expectedError != "" {
|
||||
assert.Error(t, err)
|
||||
assert.Contains(t, err.Error(), tt.expectedError)
|
||||
if assert.Error(t, err) {
|
||||
assert.Contains(t, err.Error(), tt.expectedError)
|
||||
}
|
||||
assert.Nil(t, profile)
|
||||
} else {
|
||||
assert.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user