Skip to content

Commit

Permalink
fix: small typo fix.
Browse files Browse the repository at this point in the history
fixes #80
  • Loading branch information
lholmquist committed Mar 7, 2018
1 parent 061166c commit 80b2102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion test/greeting-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit 80b2102

Please sign in to comment.