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