Make sanitize test more explicit

This commit is contained in:
Jackson Harper
2022-02-15 15:59:38 -08:00
parent c8abf87367
commit bf305bef39

View File

@ -58,8 +58,8 @@ describe('Sanitize Directive', () => {
`
})
it('responds with error code EMPTY_NAME', async () => {
expect(async () => { await graphqlRequest(query, authToken) }).to.throw
it('responds status code 500 when invalid input', async () => {
return graphqlRequest(query, authToken).expect(500)
})
})
})