Skip to content

Commit

Permalink
fix: remove incorrect test
Browse files Browse the repository at this point in the history
  • Loading branch information
dimabory committed Feb 1, 2019
1 parent f56ad70 commit 234c3a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 3 additions & 4 deletions lib/src/Mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,13 @@ export default class Mapping implements IMapping {
}

public getEmoji(id: number): string {

const emoji = this.revEmojis.get(id)

if (emoji) {
return emoji
if (undefined === emoji) {
throw Error(`Invalid id provided: ${id}`)
}

throw Error(`Invalid id provided: ${id}`)
return emoji
}

public getId(rune: string): number {
Expand Down
4 changes: 0 additions & 4 deletions tests/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
"input": " ",
"output": "πŸˆβ˜•β˜•β˜•"
},
{
"input": "πŸ€„πŸ€„πŸ€„πŸ€„",
"output": "\u0000\u0000\u0000\u0000\u0000"
},
{
"input": "Base64 is so 1999, isn't there something better?",
"output": "\ud83c\udfd7\ud83d\udce9\ud83c\udfa6\ud83d\udc07\ud83c\udf9b\ud83d\udcd8\ud83d\udd2f\ud83d\ude9c\ud83d\udc9e\ud83d\ude3d\ud83c\udd96\ud83d\udc0a\ud83c\udfb1\ud83e\udd41\ud83d\ude84\ud83c\udf31\ud83d\udc9e\ud83d\ude2d\ud83d\udcae\ud83c\uddf5\ud83d\udca2\ud83d\udd65\ud83d\udc2d\ud83d\udd38\ud83c\udf49\ud83d\udeb2\ud83e\udd91\ud83d\udc36\ud83d\udca2\ud83d\udd65\ud83d\udd2e\ud83d\udd3a\ud83c\udf49\ud83d\udcf8\ud83d\udc2e\ud83c\udf3c\ud83d\udc66\ud83d\ude9f\ud83e\udd70\u2615"
Expand Down

0 comments on commit 234c3a8

Please sign in to comment.