searchbar.test.tsx 862 Bytes
Newer Older
1
import React from "react";
DESKTOP-J7QTMBR\mikke's avatar
DESKTOP-J7QTMBR\mikke committed
2
import {  render } from "@testing-library/react";
3
4
5
6
7
8
9
10

import { Searchbar } from './searchbar';

        test('FocusInput matches snapshot', () => {
            const { container } = render(<Searchbar />)
            expect(container.firstChild).toMatchSnapshot();
          });

Duvara Nishaharan's avatar
Duvara Nishaharan committed
11
          describe('Component: Searchbar', () => {
12
13
14
15
            const items =["Norway", "India", "Germany"];

            describe("<searchbar />", () => {
        });
DESKTOP-J7QTMBR\mikke's avatar
DESKTOP-J7QTMBR\mikke committed
16
17
    
    });
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45





function shallow(arg0: JSX.Element) {
    throw new Error("Function not implemented.");
}
         /*
         test('calls correct function on click', () => {
            const onClick = jest.fn();
            const jo = render(getById("search_button") />)
            expect(onClick).toHaveBeenCalled();





          });

         
          */
      
     

    //});