mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-28 06:48:32 +09:00
Insert missing spaces
This commit is contained in:
parent
389f9bfea2
commit
a0b13505a0
10
test/mfm.ts
10
test/mfm.ts
@ -182,19 +182,19 @@ describe('Text', () => {
|
||||
it('emoji', () => {
|
||||
const tokens1 = analyze(':cat:');
|
||||
assert.deepEqual([
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat'}
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat' }
|
||||
], tokens1);
|
||||
|
||||
const tokens2 = analyze(':cat::cat::cat:');
|
||||
assert.deepEqual([
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat'},
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat'},
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat'}
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat' },
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat' },
|
||||
{ type: 'emoji', content: ':cat:', name: 'cat' }
|
||||
], tokens2);
|
||||
|
||||
const tokens3 = analyze('🍎');
|
||||
assert.deepEqual([
|
||||
{ type: 'emoji', content: ':cat:', emoji: '🍎'}
|
||||
{ type: 'emoji', content: ':cat:', emoji: '🍎' }
|
||||
], tokens3);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user