mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-08-05 00:51:58 +02:00
test: improved coverage
This commit is contained in:
11
src/utils/get-contact-href.test.js
Normal file
11
src/utils/get-contact-href.test.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// @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('#');
|
||||
});
|
Reference in New Issue
Block a user