Skip to content

Commit

Permalink
add response validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Mar 15, 2020
1 parent b874239 commit 29dfb22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/response.validation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ describe(packageJson.name, () => {
.that.equals(500);
}));

// TODO add test for allOf - when allOf is used an array value passes when object is expected
it('should fail if response is array when expecting object', async () =>
request(app)
.get(`${app.basePath}/object`)
Expand Down

0 comments on commit 29dfb22

Please sign in to comment.