Skip to content

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
miryamfoiferCX committed Aug 19, 2024
1 parent 92885f9 commit 6cc19fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/services/projects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func Test_createProject(t *testing.T) {
accessManagementWrapper: &mock.AccessManagementMockWrapper{},
projectGroups: "grp1,grp2",
featureFlagsWrapper: &mock.FeatureFlagsMockWrapper{},
}, want: "ID-new-project-name", wantErr: true},
}, want: "", wantErr: true},
{name: "When called with mock fake error model return fake error from project create", args: args{
projectName: "mock-some-error-model",
cmd: &cobra.Command{},
Expand All @@ -132,7 +132,7 @@ func Test_createProject(t *testing.T) {
accessManagementWrapper: &mock.AccessManagementMockWrapper{},
projectGroups: "fake-group-error",
featureFlagsWrapper: &mock.FeatureFlagsMockWrapper{},
}, want: "ID-new-project-name", wantErr: true},
}, want: "", wantErr: true},
{name: "When called with a new project name and projectPrivatePackage set to true return the Id of the newly created project", args: args{
projectName: "new-project-name",
cmd: &cobra.Command{},
Expand Down

0 comments on commit 6cc19fb

Please sign in to comment.