diff --git a/src/test/school.js b/src/test/school.js index 56b736752d87791dc1be8266389c58806b50d3db..43171e30e86b888964985704a0ee2db123f6a124 100644 --- a/src/test/school.js +++ b/src/test/school.js @@ -68,5 +68,17 @@ describe('request schools', () => { //res.body.result[0].should.have.property('nome_entidade'); done(); }) - }) + }); + + it('should return 400 with no filters', (done) => { + chai.request(server) + .get('/api/v1/school') + .end((err, res) => { + res.should.have.status(400); + res.should.be.json; + res.body.should.have.property('error'); + res.body.error.should.be.equal('Wrong/No filter specified'); + done(); + }) + }); });