mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
Insert missing spaces
This commit is contained in:
parent
c50196826c
commit
b40afd98e3
1 changed files with 5 additions and 5 deletions
10
test/mfm.ts
10
test/mfm.ts
|
@ -182,19 +182,19 @@ describe('Text', () => {
|
||||||
it('emoji', () => {
|
it('emoji', () => {
|
||||||
const tokens1 = analyze(':cat:');
|
const tokens1 = analyze(':cat:');
|
||||||
assert.deepEqual([
|
assert.deepEqual([
|
||||||
{ type: 'emoji', content: ':cat:', name: 'cat'}
|
{ type: 'emoji', content: ':cat:', name: 'cat' }
|
||||||
], tokens1);
|
], tokens1);
|
||||||
|
|
||||||
const tokens2 = analyze(':cat::cat::cat:');
|
const tokens2 = analyze(':cat::cat::cat:');
|
||||||
assert.deepEqual([
|
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);
|
], tokens2);
|
||||||
|
|
||||||
const tokens3 = analyze('🍎');
|
const tokens3 = analyze('🍎');
|
||||||
assert.deepEqual([
|
assert.deepEqual([
|
||||||
{ type: 'emoji', content: ':cat:', emoji: '🍎'}
|
{ type: 'emoji', content: ':cat:', emoji: '🍎' }
|
||||||
], tokens3);
|
], tokens3);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue