Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Jan 2, 2020
1 parent 4b139d4 commit 11ecc04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/repository/commits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ func TestPushCommits_ToAPIPayloadCommits(t *testing.T) {
}

func TestPushCommits_AvatarLink(t *testing.T) {
assert.NoError(t, models.PrepareTestDatabase())

pushCommits := NewPushCommits()
pushCommits.Commits = []*PushCommit{
{
Expand All @@ -108,7 +110,7 @@ func TestPushCommits_AvatarLink(t *testing.T) {
pushCommits.Len = len(pushCommits.Commits)

assert.Equal(t,
"/suburl/user/avatar/user2/-1",
"/user/avatar/user2/-1",
pushCommits.AvatarLink("[email protected]"))

assert.Equal(t,
Expand Down

0 comments on commit 11ecc04

Please sign in to comment.