Skip to content

Commit

Permalink
Merge 2c588f7 into 39ed2af
Browse files Browse the repository at this point in the history
  • Loading branch information
femitj committed Aug 29, 2019
2 parents 39ed2af + 2c588f7 commit e149ec8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));

app.get('/', (req, res) => {
app.get('/api/v1', (req, res) => {
res.status(200).json({
status: 200,
message: 'Welcome to Barefoot-Nomad'
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Handle incoming requests on routes', () => {
it('should return 200 and success message for the / route', (done) => {
chai
.request(app)
.get('/')
.get('/api/v1')
.end((err, res) => {
expect(res).to.have.status(200);
expect(res.body).to.be.an('object');
Expand Down

0 comments on commit e149ec8

Please sign in to comment.