From 227de1dce3b6078d78e1a811b7cfb3cd8d90f09f Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Sat, 17 Aug 2019 16:11:00 -0400 Subject: [PATCH] test cleanup --- test/additional.props.spec.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/additional.props.spec.ts b/test/additional.props.spec.ts index 1cb57a00..53c981ae 100644 --- a/test/additional.props.spec.ts +++ b/test/additional.props.spec.ts @@ -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 () =>