Verify --body and --body-file are not assignable at the same time

This commit is contained in:
Babak K. Shandiz 2024-07-28 15:41:54 +01:00
parent 1520292726
commit 6dc8cc41d0
No known key found for this signature in database
GPG key ID: 44950AED81AD710F

View file

@ -112,6 +112,11 @@ func TestNewCmdEdit(t *testing.T) {
},
wantsErr: false,
},
{
name: "both body and body-file flags",
input: "23 --body foo --body-file bar",
wantsErr: true,
},
{
name: "base flag",
input: "23 --base base-branch-name",