diff --git a/src/libs/middlewares/id2str.js b/src/libs/middlewares/id2str.js index feb14156852d1defdf0c13281f78ad9f5233f641..48ecf56cb759090b24b5c013997df80c6a1dfc41 100644 --- a/src/libs/middlewares/id2str.js +++ b/src/libs/middlewares/id2str.js @@ -37,5 +37,8 @@ module.exports = { transform, gender, period, - schoolYear + schoolYear, + admDependency, + location, + ethnicGroup }; diff --git a/src/test/enrollment.js b/src/test/enrollment.js index daad36c46f3d3e2496ae7d105eb054e7adb3cc8e..c0f2632685448491c3d1a62b698ed0540e3dfbed 100644 --- a/src/test/enrollment.js +++ b/src/test/enrollment.js @@ -180,7 +180,7 @@ describe('request enrollments', () => { it('should list enrollments with valid dimensions', (done) => { chai.request(server) - .get('/api/v1/enrollment?dims=region,state,adm_dependency,location&filter=min_year:2014,region:4') + .get('/api/v1/enrollment?dims=region,state,adm_dependency,location,gender,period,education_level,location,ethnic_group') .end((err, res) => { res.should.have.status(200); res.should.be.json;