Skip to content

Commit

Permalink
add emoji.json dependency and add a test for new emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Jun 29, 2023
1 parent decf195 commit 55f00ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/files-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ jobs:
backend:
- "**/*.go"
- "templates/**/*.tmpl"
- "assets/emoji.json"
- "go.mod"
- "go.sum"
- "Makefile"
frontend:
- "**/*.js"
- "web_src/**"
- "assets/emoji.json"
- "package.json"
- "package-lock.json"
- "Makefile"
Expand Down
4 changes: 4 additions & 0 deletions web_src/js/utils/match.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ test('matchEmoji', () => {
expect(matchEmoji('1st_')).toEqual([
'1st_place_medal',
]);

expect(matchEmoji('jellyfish')).toEqual([
'jellyfish',
]);
});

test('matchMention', () => {
Expand Down

0 comments on commit 55f00ae

Please sign in to comment.