diff --git a/test/test.js b/test/test.js index a9b67bb2269983afbbe479cd72fea744330e81da..bad774a4dcac019492a55fe957fd4aa8f42f39c4 100644 --- a/test/test.js +++ b/test/test.js @@ -11,7 +11,7 @@ describe('request enrollments', function(){ it('should list enrollments', function(done){ chai.request(server) - .get('/v1/enrollments') + .get('/api/v1/enrollments') .end(function(err, res){ res.should.have.status(200); res.should.be.json; @@ -28,7 +28,7 @@ describe('request regions', function(){ it('should list all regions', function(done){ chai.request(server) - .get('/v1/regions') + .get('/api/v1/regions') .end(function(err, res){ res.should.have.status(200); res.should.be.json; @@ -42,7 +42,7 @@ describe('request regions', function(){ it('should list region by id', function(done){ chai.request(server) - .get('/v1/regions/1') + .get('/api/v1/regions/1') .end(function(err, res){ res.should.have.status(200); res.should.be.json; @@ -60,7 +60,7 @@ describe('request states', function(){ it('should list all states', function(done){ chai.request(server) - .get('/v1/states') + .get('/api/v1/states') .end(function(err, res){ res.should.have.status(200); res.should.be.json; @@ -75,7 +75,7 @@ describe('request states', function(){ it('should list a state by id', function(done){ chai.request(server) - .get('/v1/states/11') + .get('/api/v1/states/11') .end(function(err, res){ res.should.have.status(200); res.should.be.json; @@ -91,7 +91,7 @@ describe('request states', function(){ it('should list states by region id', function(done){ chai.request(server) - .get('/v1/states/region/1') + .get('/api/v1/states/region/1') .end(function(err, res){ res.should.have.status(200); res.should.be.json; @@ -109,7 +109,7 @@ describe('request cities', function(){ it('should list all cities', function(done){ chai.request(server) - .get('/v1/cities') + .get('/api/v1/cities') .end(function(err, res){ res.should.have.status(200); res.should.be.json; @@ -125,7 +125,7 @@ describe('request cities', function(){ it('should list a city by id', function(done){ chai.request(server) - .get('/v1/cities/1') + .get('/api/v1/cities/1') .end(function(err, res){ res.should.have.status(200); res.should.be.json; @@ -141,7 +141,7 @@ describe('request cities', function(){ it('should list a city by codigo_ibge', function(done){ chai.request(server) - .get('/v1/cities/ibge/1200013') + .get('/api/v1/cities/ibge/1200013') .end(function(err, res){ res.should.have.status(200); res.should.be.json;