import * as React from 'react';
import { render, screen } from '../../../../jest/test-helpers';
import Emoji from '../emoji';
describe('', () => {
it('renders a simple emoji', () => {
render();
const img = screen.getByRole('img');
expect(img.getAttribute('src')).toBe('/packs/emoji/1f600.svg');
expect(img.getAttribute('alt')).toBe('π');
});
// https://emojipedia.org/emoji-flag-sequence/
it('renders a sequence emoji', () => {
render();
const img = screen.getByRole('img');
expect(img.getAttribute('src')).toBe('/packs/emoji/1f1fa-1f1f8.svg');
expect(img.getAttribute('alt')).toBe('πΊπΈ');
});
});