Skip to content

Commit cb01324

Browse files
committed
add extra assert
1 parent 932b502 commit cb01324

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

enterprise/cli/create_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cli_test
22

33
import (
44
"context"
5+
"fmt"
56
"sync"
67
"testing"
78

@@ -196,5 +197,7 @@ func TestEnterpriseCreate(t *testing.T) {
196197
_ = ptytest.New(t).Attach(inv)
197198
err := inv.Run()
198199
require.Error(t, err)
200+
// The error message should indicate the flag to fix the issue.
201+
require.ErrorContains(t, err, fmt.Sprintf("--org=%q", "first-organization"))
199202
})
200203
}

0 commit comments

Comments
 (0)