Insert missing spaces

This commit is contained in:
syuilo 2018-11-05 20:15:09 +09:00
parent 389f9bfea2
commit a0b13505a0
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 5 additions and 5 deletions

View File

@ -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);
});