Skip to content

Commit

Permalink
Merge pull request #71 from is2ei/improve-coverage
Browse files Browse the repository at this point in the history
Improved coverage v4 accounts.go
  • Loading branch information
Horie Issei #hashtagtest committed Dec 25, 2019
2 parents 882e4dc + 02be2c5 commit 9afce54
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions typetalk/v4/accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,13 @@ func Test_AccountsService_GetMyFriends_should_get_some_friends(t *testing.T) {
t.Errorf("returned content: got %v, want %v", result, want)
}
}

func Test_AccountsService_GetMyFriends_errorResponse(t *testing.T) {
_, _, err := client.Accounts.GetMyFriends(context.Background(), "qwerty", "hello", &GetMyFriendsOptions{
Offset: 10,
Count: 2,
})
if err == nil {
t.Errorf("Expected error to be returned")
}
}

0 comments on commit 9afce54

Please sign in to comment.