diff --git a/test/short-urls/CreateShortUrl.test.js b/test/short-urls/CreateShortUrl.test.js
index 507e0f85..55592106 100644
--- a/test/short-urls/CreateShortUrl.test.js
+++ b/test/short-urls/CreateShortUrl.test.js
@@ -59,6 +59,7 @@ describe('', () => {
validSince: validSince.format(),
validUntil: validUntil.format(),
maxVisits: '20',
+ findIfExists: false,
},
]
);
diff --git a/test/short-urls/UseExistingIfFoundInfoIcon.test.js b/test/short-urls/UseExistingIfFoundInfoIcon.test.js
new file mode 100644
index 00000000..12f25a0d
--- /dev/null
+++ b/test/short-urls/UseExistingIfFoundInfoIcon.test.js
@@ -0,0 +1,23 @@
+import React from 'react';
+import { mount } from 'enzyme';
+import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
+import { Modal } from 'reactstrap';
+import UseExistingIfFoundInfoIcon from '../../src/short-urls/UseExistingIfFoundInfoIcon';
+
+describe('', () => {
+ let wrapped;
+
+ beforeEach(() => {
+ wrapped = mount();
+ });
+
+ afterEach(() => wrapped.unmount());
+
+ it('shows modal when icon is clicked', () => {
+ const icon = wrapped.find(FontAwesomeIcon);
+
+ expect(wrapped.find(Modal).prop('isOpen')).toEqual(false);
+ icon.simulate('click');
+ expect(wrapped.find(Modal).prop('isOpen')).toEqual(true);
+ });
+});