Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Aug 17, 2019
1 parent 227de1d commit ba2a51b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/additional.props.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ describe(packageJson.name, () => {
})
.expect(400)
.then(r => {
const e = r.body.errors;
expect(e)
.to.be.an('array')
.with.length(1);
expect(e[0].message).to.equal('should NOT have additional properties');
expect(r.body.errors).to.be.an('array')
expect(r.body.errors).to.have.length(1);
const message = r.body.errors[0].message;
expect(message).to.equal('should NOT have additional properties');
}));

it('should return 200 if additonalProperities=true and extra props are sent', async () =>
Expand Down

0 comments on commit ba2a51b

Please sign in to comment.