Skip to content

Commit

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

Please sign in to comment.