Skip to content

Commit

Permalink
Change ping to ping pong (testing ci/cd)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahojukka5 committed Dec 12, 2020
1 parent 1bf67bc commit d1d40e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/ping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const pingRouter = express.Router();

pingRouter.get('/', (_req, res) => {
console.log('someone pinged here');
res.send('pong');
res.send('ping pong');
});

export default pingRouter;
2 changes: 1 addition & 1 deletion tests/ping.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const request = supertest(app);
describe('ping endpoint', () => {
test('should return pong from ping', async () => {
const response = await request.get('/api/ping');
const expected = 'pong';
const expected = 'ping pong';
expect(response.text).toEqual(expected);
});
});

1 comment on commit d1d40e6

@ahojukka5
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IBM Cloud toolchain: Delivery Pipeline deployed patientor-backend to dev, including this commit

Please sign in to comment.