Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Update pkg/server/ptypes/project_template_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Clint <[email protected]>
  • Loading branch information
izaaklauer and catsby authored Aug 7, 2023
1 parent 60be0a1 commit 2395b31
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkg/server/ptypes/project_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,14 @@ func TestValidateCreateProjectTemplateRequest(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
err := ValidateCreateProjectTemplateRequest(tt.req)
if err != nil {
if !tt.wantErr {
t.Errorf("ValidateCreateProjectTemplateRequest() error = %v, wantErr %v", err, tt.wantErr)
}
if err == nil && tt.wantErr {
t.Errorf("expected error in ValidateCreateProjectTemplateRequest() but got none")
}

if err != nil && !tt.wantErr {
t.Errorf("ValidateCreateProjectTemplateRequest() error = %v, wantErr %v", err, tt.wantErr)
}

})
}
}
Expand Down

0 comments on commit 2395b31

Please sign in to comment.