Skip to content

Commit

Permalink
feat(mocker): fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Miaskowski committed Oct 15, 2018
1 parent e4513c5 commit 08c4d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/http/src/mocker/negotiator/NegotiatorHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const helpers = {
throw new Error('No 400 response defined');
}
// find first response with any static examples
const responseWithExamples = response.content.find(content => !content.examples || content.examples.length === 0);
const responseWithExamples = response.content.find(content => !!content.examples && content.examples.length !== 0);
// find first response with a schema
const responseWithSchema = response.content.find(content => !!content.schema);

Expand Down

0 comments on commit 08c4d7f

Please sign in to comment.