chore: add javascript unit test

Verify that the operations in `emoji.js` still function correctly with
normal, custom and non-existing emojis.
This commit is contained in:
Gusted 2025-08-10 22:03:15 +02:00
commit 1a466def75
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 29 additions and 1 deletions

View file

@ -4,8 +4,9 @@ window.config = {
csrfToken: 'test-csrf-token-123456',
pageData: {},
i18n: {},
customEmojis: {},
customEmojis: new Set(['forgejo', 'frogejo', 'blobnom']),
appSubUrl: '',
assetUrlPrefix: '/assets',
mentionValues: [
{key: 'user1 User 1', value: 'user1', name: 'user1', fullname: 'User 1', avatar: 'https://avatar1.com'},
{key: 'user2 User 2', value: 'user2', name: 'user2', fullname: 'User 2', avatar: 'https://avatar2.com'},