Skip to content
Snippets Groups Projects
Commit eae94751 authored by Hamer Iboshi's avatar Hamer Iboshi
Browse files

Add test to rateSchool year range

parent 39127430
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!100Add tests to adm dependency and adm dependency priv to class
Pipeline #
...@@ -105,6 +105,20 @@ describe('request rate_school', () => { ...@@ -105,6 +105,20 @@ describe('request rate_school', () => {
}); });
}); });
it('should list the age range', (done) => {
chai.request(server)
.get('/api/v1/rate_school?dims=age_range')
.end((err, res) => {
res.should.have.status(200);
res.should.be.json;
res.body.should.have.property('result');
res.body.result.should.be.a('array');
res.body.result[0].should.have.property('age_range_id');
res.body.result[0].should.have.property('age_range_name');
done();
});
});
it('should list the gender', (done) => { it('should list the gender', (done) => {
chai.request(server) chai.request(server)
.get('/api/v1/rate_school/gender') .get('/api/v1/rate_school/gender')
......
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