mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-28 23:09:16 +09:00
parent
b9b05a7401
commit
5744c391e6
@ -182,14 +182,14 @@ describe('Text', () => {
|
||||
it('emoji', () => {
|
||||
const tokens1 = analyze(':cat:');
|
||||
assert.deepEqual([
|
||||
{ type: 'emoji', content: ':cat:', emoji: 'cat'}
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat'}
|
||||
], tokens1);
|
||||
|
||||
const tokens2 = analyze(':cat::cat::cat:');
|
||||
assert.deepEqual([
|
||||
{ type: 'emoji', content: ':cat:', emoji: 'cat'},
|
||||
{ type: 'emoji', content: ':cat:', emoji: 'cat'},
|
||||
{ type: 'emoji', content: ':cat:', emoji: 'cat'}
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat'},
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat'},
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat'}
|
||||
], tokens2);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user