@@ -63,7 +63,7 @@ var _ = Describe("CreateTeam", func() {
6363
6464 Context ("RunE execution flow" , func () {
6565 It ("should successfully create a team when organization ID is provided via environment" , func () {
66- c .Opts .GlobalOptions . OrgId = "" // Ensure flag is empty
66+ c .Opts .OrgId = "" // Ensure flag is empty
6767 mockEnv .EXPECT ().GetOrgId ().Return (orgId ).Once ()
6868
6969 expectedTeam := api.Team {
@@ -81,7 +81,7 @@ var _ = Describe("CreateTeam", func() {
8181
8282 Context ("when creating a team with an organization ID" , func () {
8383 BeforeEach (func () {
84- c .Opts .GlobalOptions . OrgId = orgId // Set OrgId via GlobalOptions (flag equivalent)
84+ c .Opts .OrgId = orgId // Set OrgId via GlobalOptions (flag equivalent)
8585 })
8686
8787 It ("should successfully create the team and return the correct object" , func () {
@@ -112,7 +112,7 @@ var _ = Describe("CreateTeam", func() {
112112
113113 Context ("when creating a team without an organization ID" , func () {
114114 BeforeEach (func () {
115- c .Opts .GlobalOptions . OrgId = "" // Ensure OrgId is empty from flag
115+ c .Opts .OrgId = "" // Ensure OrgId is empty from flag
116116 })
117117
118118 It ("should create the team without orgID " , func () {
@@ -132,7 +132,7 @@ var _ = Describe("CreateTeam", func() {
132132
133133 Context ("when an invalid organization ID format is provided via flag" , func () {
134134 BeforeEach (func () {
135- c .Opts .GlobalOptions . OrgId = "invalid-uuid-format" // Set an invalid UUID in GlobalOptions
135+ c .Opts .OrgId = "invalid-uuid-format" // Set an invalid UUID in GlobalOptions
136136 })
137137
138138 It ("should return an error due to invalid organization ID format" , func () {
0 commit comments