Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
simcaq-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
simcaq-node
Commits
13452a77
There was a problem fetching the pipeline summary.
Commit
13452a77
authored
7 years ago
by
Glenda Train
Browse files
Options
Downloads
Patches
Plain Diff
location and incomeLevel tests
parent
1c458e86
No related branches found
No related tags found
2 merge requests
!116
Release v1.0.0
,
!102
Add tests
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/id2str.js
+7
-0
7 additions, 0 deletions
src/test/id2str.js
with
7 additions
and
0 deletions
src/test/id2str.js
+
7
−
0
View file @
13452a77
...
...
@@ -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
}]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment