Skip to content

Commit

Permalink
added another test case scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
pmorelli92 committed Apr 19, 2022
1 parent c1a4f7d commit 36d1424
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions parser_test.go
Expand Up @@ -3466,6 +3466,20 @@ func TestTryAddDescription(t *testing.T) {
},
},
},
{
name: "description has invalid format",
args: args{
spec: &spec.SecurityScheme{},
extensions: map[string]interface{}{
"@description": 12345,
},
},
want: &spec.SecurityScheme{
SecuritySchemeProps: spec.SecuritySchemeProps{
Description: "",
},
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 36d1424

Please sign in to comment.