Fix test fails

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-11-05 19:50:38 +09:00 committed by GitHub
parent 3fe934ee62
commit b9b05a7401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -182,14 +182,14 @@ describe('Text', () => {
it('emoji', () => {
const tokens1 = analyze(':cat:');
assert.deepEqual([
{ type: 'emoji', content: ':cat:', name: 'cat'}
{ type: 'emoji', content: ':cat:', emoji: '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:', emoji: 'cat'},
{ type: 'emoji', content: ':cat:', emoji: 'cat'},
{ type: 'emoji', content: ':cat:', emoji: 'cat'}
], tokens2);
});