test(cmd): update expected git diff ranges to include origin prefix
All checks were successful
CI / Test (push) Successful in 34s
CI / Lint (push) Successful in 26s
CI / Build (push) Successful in 18s

This commit is contained in:
Gregory Gauthier 2026-03-31 11:38:03 +01:00
parent a2a1dbf33a
commit 99b9405298

View File

@ -334,8 +334,8 @@ func TestRunPRDescribe(t *testing.T) {
if mock.calls != 1 {
t.Errorf("expected 1 AI call, got %d", mock.calls)
}
// Expect "diff", "develop..HEAD", "--no-color"
expectedArg := "develop..HEAD"
// Expect "diff", "origin/develop..HEAD", "--no-color"
expectedArg := "origin/develop..HEAD"
found := false
for _, arg := range capturedArgs {
if arg == expectedArg {
@ -362,7 +362,7 @@ func TestRunPRDescribe(t *testing.T) {
if mock.calls != 1 {
t.Errorf("expected 1 AI call, got %d", mock.calls)
}
expectedArg := "master..HEAD"
expectedArg := "origin/master..HEAD"
found := false
for _, arg := range capturedArgs {
if arg == expectedArg {