diff options
Diffstat (limited to 'test/unit/specs')
| -rw-r--r-- | test/unit/specs/components/emoji_input.spec.js | 3 | ||||
| -rw-r--r-- | test/unit/specs/services/matcher/matcher.spec.js | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/test/unit/specs/components/emoji_input.spec.js b/test/unit/specs/components/emoji_input.spec.js index 752111ef..03deece3 100644 --- a/test/unit/specs/components/emoji_input.spec.js +++ b/test/unit/specs/components/emoji_input.spec.js @@ -14,7 +14,8 @@ const generateInput = (value, padEmoji = true) => { padEmoji } } - } + }, + $t: (msg) => msg }, stubs: { FAIcon: true diff --git a/test/unit/specs/services/matcher/matcher.spec.js b/test/unit/specs/services/matcher/matcher.spec.js index 7a2494f0..c6e9719d 100644 --- a/test/unit/specs/services/matcher/matcher.spec.js +++ b/test/unit/specs/services/matcher/matcher.spec.js @@ -78,5 +78,11 @@ describe('MatcherService', () => { expect(MatcherService.extractTagFromUrl(url)).to.eql(false) }) + + it('should return tag name from non-ascii tags', () => { + const url = encodeURI('https://website.com/tag/喵喵喵') + + expect(MatcherService.extractTagFromUrl(url)).to.eql('喵喵喵') + }) }) }) |
