1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-24 15:16:21 +09:00

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

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