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
Harbor Registry
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
dceb479c
There was a problem fetching the pipeline summary.
Commit
dceb479c
authored
8 years ago
by
Vytor Calixto
Browse files
Options
Downloads
Patches
Plain Diff
Fix api route in test.js
parent
79118b8c
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test.js
+9
-9
9 additions, 9 deletions
test/test.js
with
9 additions
and
9 deletions
test/test.js
+
9
−
9
View file @
dceb479c
...
@@ -11,7 +11,7 @@ describe('request enrollments', function(){
...
@@ -11,7 +11,7 @@ describe('request enrollments', function(){
it
(
'
should list enrollments
'
,
function
(
done
){
it
(
'
should list enrollments
'
,
function
(
done
){
chai
.
request
(
server
)
chai
.
request
(
server
)
.
get
(
'
/v1/enrollments
'
)
.
get
(
'
/
api/
v1/enrollments
'
)
.
end
(
function
(
err
,
res
){
.
end
(
function
(
err
,
res
){
res
.
should
.
have
.
status
(
200
);
res
.
should
.
have
.
status
(
200
);
res
.
should
.
be
.
json
;
res
.
should
.
be
.
json
;
...
@@ -28,7 +28,7 @@ describe('request regions', function(){
...
@@ -28,7 +28,7 @@ describe('request regions', function(){
it
(
'
should list all regions
'
,
function
(
done
){
it
(
'
should list all regions
'
,
function
(
done
){
chai
.
request
(
server
)
chai
.
request
(
server
)
.
get
(
'
/v1/regions
'
)
.
get
(
'
/
api/
v1/regions
'
)
.
end
(
function
(
err
,
res
){
.
end
(
function
(
err
,
res
){
res
.
should
.
have
.
status
(
200
);
res
.
should
.
have
.
status
(
200
);
res
.
should
.
be
.
json
;
res
.
should
.
be
.
json
;
...
@@ -42,7 +42,7 @@ describe('request regions', function(){
...
@@ -42,7 +42,7 @@ describe('request regions', function(){
it
(
'
should list region by id
'
,
function
(
done
){
it
(
'
should list region by id
'
,
function
(
done
){
chai
.
request
(
server
)
chai
.
request
(
server
)
.
get
(
'
/v1/regions/1
'
)
.
get
(
'
/
api/
v1/regions/1
'
)
.
end
(
function
(
err
,
res
){
.
end
(
function
(
err
,
res
){
res
.
should
.
have
.
status
(
200
);
res
.
should
.
have
.
status
(
200
);
res
.
should
.
be
.
json
;
res
.
should
.
be
.
json
;
...
@@ -60,7 +60,7 @@ describe('request states', function(){
...
@@ -60,7 +60,7 @@ describe('request states', function(){
it
(
'
should list all states
'
,
function
(
done
){
it
(
'
should list all states
'
,
function
(
done
){
chai
.
request
(
server
)
chai
.
request
(
server
)
.
get
(
'
/v1/states
'
)
.
get
(
'
/
api/
v1/states
'
)
.
end
(
function
(
err
,
res
){
.
end
(
function
(
err
,
res
){
res
.
should
.
have
.
status
(
200
);
res
.
should
.
have
.
status
(
200
);
res
.
should
.
be
.
json
;
res
.
should
.
be
.
json
;
...
@@ -75,7 +75,7 @@ describe('request states', function(){
...
@@ -75,7 +75,7 @@ describe('request states', function(){
it
(
'
should list a state by id
'
,
function
(
done
){
it
(
'
should list a state by id
'
,
function
(
done
){
chai
.
request
(
server
)
chai
.
request
(
server
)
.
get
(
'
/v1/states/11
'
)
.
get
(
'
/
api/
v1/states/11
'
)
.
end
(
function
(
err
,
res
){
.
end
(
function
(
err
,
res
){
res
.
should
.
have
.
status
(
200
);
res
.
should
.
have
.
status
(
200
);
res
.
should
.
be
.
json
;
res
.
should
.
be
.
json
;
...
@@ -91,7 +91,7 @@ describe('request states', function(){
...
@@ -91,7 +91,7 @@ describe('request states', function(){
it
(
'
should list states by region id
'
,
function
(
done
){
it
(
'
should list states by region id
'
,
function
(
done
){
chai
.
request
(
server
)
chai
.
request
(
server
)
.
get
(
'
/v1/states/region/1
'
)
.
get
(
'
/
api/
v1/states/region/1
'
)
.
end
(
function
(
err
,
res
){
.
end
(
function
(
err
,
res
){
res
.
should
.
have
.
status
(
200
);
res
.
should
.
have
.
status
(
200
);
res
.
should
.
be
.
json
;
res
.
should
.
be
.
json
;
...
@@ -109,7 +109,7 @@ describe('request cities', function(){
...
@@ -109,7 +109,7 @@ describe('request cities', function(){
it
(
'
should list all cities
'
,
function
(
done
){
it
(
'
should list all cities
'
,
function
(
done
){
chai
.
request
(
server
)
chai
.
request
(
server
)
.
get
(
'
/v1/cities
'
)
.
get
(
'
/
api/
v1/cities
'
)
.
end
(
function
(
err
,
res
){
.
end
(
function
(
err
,
res
){
res
.
should
.
have
.
status
(
200
);
res
.
should
.
have
.
status
(
200
);
res
.
should
.
be
.
json
;
res
.
should
.
be
.
json
;
...
@@ -125,7 +125,7 @@ describe('request cities', function(){
...
@@ -125,7 +125,7 @@ describe('request cities', function(){
it
(
'
should list a city by id
'
,
function
(
done
){
it
(
'
should list a city by id
'
,
function
(
done
){
chai
.
request
(
server
)
chai
.
request
(
server
)
.
get
(
'
/v1/cities/1
'
)
.
get
(
'
/
api/
v1/cities/1
'
)
.
end
(
function
(
err
,
res
){
.
end
(
function
(
err
,
res
){
res
.
should
.
have
.
status
(
200
);
res
.
should
.
have
.
status
(
200
);
res
.
should
.
be
.
json
;
res
.
should
.
be
.
json
;
...
@@ -141,7 +141,7 @@ describe('request cities', function(){
...
@@ -141,7 +141,7 @@ describe('request cities', function(){
it
(
'
should list a city by codigo_ibge
'
,
function
(
done
){
it
(
'
should list a city by codigo_ibge
'
,
function
(
done
){
chai
.
request
(
server
)
chai
.
request
(
server
)
.
get
(
'
/v1/cities/ibge/1200013
'
)
.
get
(
'
/
api/
v1/cities/ibge/1200013
'
)
.
end
(
function
(
err
,
res
){
.
end
(
function
(
err
,
res
){
res
.
should
.
have
.
status
(
200
);
res
.
should
.
have
.
status
(
200
);
res
.
should
.
be
.
json
;
res
.
should
.
be
.
json
;
...
...
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