13 lines
320 B
TypeScript
13 lines
320 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { getCountryFlag } from './country';
|
|
|
|
describe('country', () => {
|
|
it('should be defined', () => {
|
|
expect(getCountryFlag).toBeDefined();
|
|
});
|
|
|
|
it('should return a flag for 2-letter codes', () => {
|
|
expect(getCountryFlag('us')).toBe('🇺🇸');
|
|
});
|
|
});
|