Fix test fails

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-11-05 19:50:38 +09:00 committed by GitHub
parent 78c82f3bc1
commit a81494a8bf

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