Skip to content

Commit

Permalink
fix error msg typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Dec 30, 2019
1 parent 7d30ff2 commit c11e869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/middlewares/openapi.request.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class RequestValidator {
throw validationError(
400,
`.query.${q}`,
`Empty valued found for query parameter '${q}'`,
`Empty value found for query parameter '${q}'`,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/query.params.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe(packageJson.name, () => {
.then(r => {
expect(r.body)
.to.have.property('message')
.that.equals('query parameter breed has empty value');
.that.equals("Empty value found for query parameter 'breed'");
expect(r.body.errors)
.to.be.an('array')
.with.length(1);
Expand Down

0 comments on commit c11e869

Please sign in to comment.