Skip to content

Commit

Permalink
test: add created date
Browse files Browse the repository at this point in the history
Signed-off-by: Tchoupinax <[email protected]>
  • Loading branch information
Tchoupinax committed Jan 19, 2025
1 parent 6baedc3 commit 6cafe76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/gitprovider/gitea/gitea_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package gitea
import (
"context"
"testing"
"time"

"code.gitea.io/sdk/gitea"
"github.com/stretchr/testify/mock"
Expand Down Expand Up @@ -191,6 +192,7 @@ func TestCreatePullRequestWithLabels(t *testing.T) {
URL: *gitea.OptionalString("http://localhost:8080"),
MergedCommitID: gitea.OptionalString("BaseSha"),
HasMerged: false,
Created: &time.Time{},
},
&gitea.Response{},
nil,
Expand Down Expand Up @@ -249,6 +251,7 @@ func TestGetPullRequest(t *testing.T) {
URL: *gitea.OptionalString("http://localhost:8080"),
MergedCommitID: gitea.OptionalString("2994fd93"),
HasMerged: false,
Created: &time.Time{},
},
}

Expand Down Expand Up @@ -337,6 +340,7 @@ func TestListPullRequests(t *testing.T) {
URL: *gitea.OptionalString("http://localhost:8080"),
MergedCommitID: gitea.OptionalString("BaseSha"),
HasMerged: false,
Created: &time.Time{},
}},
&gitea.Response{},
nil,
Expand Down

0 comments on commit 6cafe76

Please sign in to comment.