Browse Source

resolve conflict

tumao 4 years ago
parent
commit
c3f0c3030d
1 changed files with 15 additions and 0 deletions
  1. 15 0
      client/src/components/__test__/customInput/SearchInput.spec.tsx

+ 15 - 0
client/src/components/__test__/customInput/SearchInput.spec.tsx

@@ -0,0 +1,15 @@
+import { fireEvent, render } from '@testing-library/react';
+import SearchInput from '../../customInput/SearchInput';
+import { I18nextProvider } from 'react-i18next';
+import i18n from '../../../i18n';
+
+describe('test search input component', () => {
+  it('renders default state', () => {
+    const mockSearchFn = jest.fn();
+    const container = render(
+      <I18nextProvider i18n={i18n}>
+        <SearchInput onSearch={mockSearchFn} />
+      </I18nextProvider>
+    );
+  });
+});