Skip to content

Commit

Permalink
test: add one more unit test (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js authored Mar 23, 2024
1 parent c455659 commit 9a1338c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
7 changes: 6 additions & 1 deletion src/helpers/getEmojiFlagByISO.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import { expect, test } from 'vitest';

import { getEmojiFlagByISO } from './getEmojiFlagByISO';
import { getEmojiFlagByISO, getFlagByCountryName } from './getEmojiFlagByISO';

test('Getting correct emoji flag by ISO country code', () => {
expect(getEmojiFlagByISO('US')).toBe('🇺🇸');
expect(getEmojiFlagByISO('CH')).toBe('🇨🇭');
});

test('Getting correct emoji flag by ISO country code', () => {
expect(getFlagByCountryName('Italy')).toBe('🇮🇹');
expect(getFlagByCountryName('FRANCE')).toBe('🇫🇷');
});

0 comments on commit 9a1338c

Please sign in to comment.