Skip to content

Commit

Permalink
CLOUDP-283505: Add unit test (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
blva authored Nov 12, 2024
1 parent 7f0b7f2 commit e169b82
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/cli/internal/changelog/outputfilter/squash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,17 @@ func TestExtractExactValuesOrFail(t *testing.T) {
want: []string{"GROUP_USER_ADMIN", "/items/roles/items/"},
wantErr: require.NoError,
},
{
name: "Multiple values with empty entries",
operation: "test",
entry: &OasDiffEntry{
ID: "response-write-only-property-enum-value-added",
OperationID: "op1",
Text: "added the new '' enum value to the request property '/items/roles/items/'"},
expectedNumberOfValues: 2,
want: []string{"", "/items/roles/items/"},
wantErr: require.NoError,
},
{
name: "Incorrect number of values",
operation: "test",
Expand Down

0 comments on commit e169b82

Please sign in to comment.