import { expect } from 'chai'; import emojify from '../../../app/javascript/mastodon/emoji'; describe('emojify', () => { it('ignores unknown shortcodes', () => { expect(emojify(':foobarbazfake:')).to.equal(':foobarbazfake:'); }); it('ignores shortcodes inside of tags', () => { expect(emojify('
')).to.equal(''); }); it('works with unclosed tags', () => { expect(emojify('hello>')).to.equal('hello>'); expect(emojify('