Skip to content
Snippets Groups Projects
Commit ecc8ecfe authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

:white_check_mark: Add test for bad request in /school

parent 07b65864
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
...@@ -68,5 +68,17 @@ describe('request schools', () => { ...@@ -68,5 +68,17 @@ describe('request schools', () => {
//res.body.result[0].should.have.property('nome_entidade'); //res.body.result[0].should.have.property('nome_entidade');
done(); 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();
})
});
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment