mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-13 06:17:26 +00:00
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:
parent
da635229bf
commit
1a466def75
2 changed files with 29 additions and 1 deletions
|
@ -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'},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue