mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-03-14 19:38:40 +01:00
12 lines
476 B
JavaScript
12 lines
476 B
JavaScript
|
// @flow
|
||
|
import getContactHref from './get-contact-href';
|
||
|
|
||
|
test('getContactHref', () => {
|
||
|
expect(getContactHref('twitter', '#')).toBe('https://www.twitter.com/#');
|
||
|
expect(getContactHref('github', '#')).toBe('https://github.com/#');
|
||
|
expect(getContactHref('email', '#')).toBe('mailto:#');
|
||
|
expect(getContactHref('vkontakte', '#')).toBe('https://vk.com/#');
|
||
|
expect(getContactHref('telegram', '#')).toBe('telegram:#');
|
||
|
expect(getContactHref('rss', '#')).toBe('#');
|
||
|
});
|