Skip to content

Commit

Permalink
Add full test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neal Granger committed Mar 1, 2017
1 parent 63eed20 commit 502ee6a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ describe('localeEmoji', function() {
expect(localeEmoji(from)).to.equal(tests[from]);
});
});

it('should return a empty string for invalid input', function() {
Object.keys(tests).forEach(function(from) {
expect(localeEmoji('potato')).to.equal('');
});
});
});

0 comments on commit 502ee6a

Please sign in to comment.