mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-03-14 19:38:40 +01:00
12 lines
487 B
JavaScript
12 lines
487 B
JavaScript
// @flow strict
|
|
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('https://t.me/#');
|
|
expect(getContactHref('rss', '#')).toBe('#');
|
|
});
|