Skip to content
Snippets Groups Projects
Commit 13452a77 authored by Glenda Train's avatar Glenda Train
Browse files

location and incomeLevel tests

parent 1c458e86
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!102Add tests
Pipeline #
......@@ -45,6 +45,8 @@ describe('id2str middleware', () => {
it('should transform a location id', (done) => {
expect(id2str.location(6)).to.deep.equal('Unidade de uso sustentável');
expect(id2str.location(4)).to.deep.equal('Terra indígena');
expect(id2str.location(5)).to.deep.equal('Área remanescente de quilombos');
done();
});
......@@ -53,6 +55,11 @@ describe('id2str middleware', () => {
done();
});
it('should transform a income level id', (done) => {
expect(id2str.incomeLevel(1)).to.deep.equal('1º quintil – 20% menores');
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