Skip to content

Commit

Permalink
fixed a couple of tests with missing examples
Browse files Browse the repository at this point in the history
after the code was updated, tests needing tuning.
  • Loading branch information
daveshanley committed Apr 12, 2024
1 parent 9e02717 commit 2bed9e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/openapi/examples_missing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ paths:
res := def.RunRule(nil, ctx)

assert.Len(t, res, 2)
assert.Equal(t, "schema is missing `examples` or `example`", res[0].Message)
assert.Equal(t, "media type is missing `examples` or `example`", res[0].Message)
assert.Contains(t, res[0].Path, "$.paths['/pizza'].get.requestBody.content['application/json']")
}

Expand Down
2 changes: 1 addition & 1 deletion statistics/statistics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestCreateReportStatistics_AlmostPerfect(t *testing.T) {

//assert.Equal(t, 100, stats.OverallScore)
// new missing examples function is now strict / correct
assert.Equal(t, 95, stats.OverallScore)
assert.Equal(t, 97, stats.OverallScore)

}

Expand Down

0 comments on commit 2bed9e6

Please sign in to comment.