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

Add tests to adm dependency and adm dependency priv to class

parent e6b39c74
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 #
......@@ -8,12 +8,6 @@ module.exports = function admDependency(id) {
return 'Municipal';
case 4:
return 'Privada';
case 5:
return 'Privada conveniada';
case 6:
return 'Privada não conveniada sem fins lucrativos';
case 7:
return 'Privada não conveniada com fins lucrativos';
default:
return 'Não classificada';
}
......
......@@ -48,6 +48,16 @@ describe('id2str middleware', () => {
done();
});
it('should transform a class adm dependency id', (done) => {
expect(id2str.admDependency(6)).to.deep.equal('Não classificada');
done();
});
it('should transform a class adm dependency priv id', (done) => {
expect(id2str.admDependencyPriv(7)).to.deep.equal('Não classificada');
done();
});
it('should transform a result', (done) => {
let req = {
result: [{gender_id: 2, period_id: 3, school_year_id: 11}]
......
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