diff --git a/app.js b/app.js index d0138d3..6cd6402 100644 --- a/app.js +++ b/app.js @@ -32,7 +32,7 @@ app.use('/licenses', express.static(path.join(__dirname, 'licenses'))); app.use('/api/greeting', (request, response) => { const name = request.query ? request.query.name : undefined; - response.send({content: `Hello, ${name || 'World'}`}); + response.send({content: `Hello, ${name || 'World!'}`}); }); module.exports = app; diff --git a/test/greeting-test.js b/test/greeting-test.js index b6f9c71..b0a651e 100644 --- a/test/greeting-test.js +++ b/test/greeting-test.js @@ -9,7 +9,7 @@ test('test out greeting route with no query param', (t) => { .expect('Content-Type', /json/) .expect(200) .then(response => { - t.equal(response.body.content, 'Hello, World'); + t.equal(response.body.content, 'Hello, World!'); t.end(); }); });