Skip to content

Commit

Permalink
feat(hello): say hello to anyone
Browse files Browse the repository at this point in the history
  • Loading branch information
Merott committed Feb 25, 2016
1 parent 1f88aee commit 0282cac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
@@ -1,5 +1,5 @@
module.exports = {
hello: function(toWhom) {
throw new Error('Not done yet!');
console.log('Hello ' + toWhom + '!');
}
};
5 changes: 4 additions & 1 deletion index.test.js
Expand Up @@ -17,6 +17,9 @@ describe('test app', function() {
});

describe('hello()', function() {
// TODO: to be done!
it('prints "Hello you!" when argument "you" is given', function() {
app.hello("you");
expect(console.log).to.have.been.calledWith('Hello you!');
});
});
});

0 comments on commit 0282cac

Please sign in to comment.