Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/gitutil/gitutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestIsRateLimitError(t *testing.T) {
Expand Down Expand Up @@ -245,7 +246,7 @@ func TestExtractBaseRepo(t *testing.T) {
func TestFindGitRoot(t *testing.T) {
t.Run("returns non-empty path when inside a git repository", func(t *testing.T) {
gitRoot, err := FindGitRoot()
assert.NoError(t, err, "FindGitRoot should succeed when running inside a git repository")
require.NoError(t, err, "FindGitRoot should succeed when running inside a git repository")
assert.NotEmpty(t, gitRoot, "FindGitRoot should return a non-empty path")
})
}
Loading