Chatwoot/app/javascript/dashboard/helper/specs/flag.spec.js

10 lines
274 B
JavaScript
Raw Normal View History

import { getCountryFlag } from '../flag';
describe('#flag', () => {
it('returns the correct flag ', () => {
expect(getCountryFlag('cz')).toBe('🇨🇿');
expect(getCountryFlag('IN')).toBe('🇮🇳');
expect(getCountryFlag('US')).toBe('🇺🇸');
});
});