test(cmd): update expected git diff ranges to include origin prefix
This commit is contained in:
parent
a2a1dbf33a
commit
99b9405298
@ -334,8 +334,8 @@ func TestRunPRDescribe(t *testing.T) {
|
|||||||
if mock.calls != 1 {
|
if mock.calls != 1 {
|
||||||
t.Errorf("expected 1 AI call, got %d", mock.calls)
|
t.Errorf("expected 1 AI call, got %d", mock.calls)
|
||||||
}
|
}
|
||||||
// Expect "diff", "develop..HEAD", "--no-color"
|
// Expect "diff", "origin/develop..HEAD", "--no-color"
|
||||||
expectedArg := "develop..HEAD"
|
expectedArg := "origin/develop..HEAD"
|
||||||
found := false
|
found := false
|
||||||
for _, arg := range capturedArgs {
|
for _, arg := range capturedArgs {
|
||||||
if arg == expectedArg {
|
if arg == expectedArg {
|
||||||
@ -362,7 +362,7 @@ func TestRunPRDescribe(t *testing.T) {
|
|||||||
if mock.calls != 1 {
|
if mock.calls != 1 {
|
||||||
t.Errorf("expected 1 AI call, got %d", mock.calls)
|
t.Errorf("expected 1 AI call, got %d", mock.calls)
|
||||||
}
|
}
|
||||||
expectedArg := "master..HEAD"
|
expectedArg := "origin/master..HEAD"
|
||||||
found := false
|
found := false
|
||||||
for _, arg := range capturedArgs {
|
for _, arg := range capturedArgs {
|
||||||
if arg == expectedArg {
|
if arg == expectedArg {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user