mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-03-14 19:38:40 +01:00
13 lines
411 B
JavaScript
13 lines
411 B
JavaScript
|
// @flow
|
||
|
import getIcon from './get-icon';
|
||
|
import { ICONS } from '../constants';
|
||
|
|
||
|
test('getIcon', () => {
|
||
|
expect(getIcon('twitter')).toBe(ICONS.TWITTER);
|
||
|
expect(getIcon('github')).toBe(ICONS.GITHUB);
|
||
|
expect(getIcon('vkontakte')).toBe(ICONS.VKONTAKTE);
|
||
|
expect(getIcon('telegram')).toEqual(ICONS.TELEGRAM);
|
||
|
expect(getIcon('email')).toEqual(ICONS.EMAIL);
|
||
|
expect(getIcon('rss')).toEqual(ICONS.RSS);
|
||
|
});
|