From f0b42cdc09b471142489108b8e3d837c44e2da59 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 22 Feb 2022 19:23:57 +0100 Subject: [PATCH] Added missing prop --- test/short-urls/SearchBar.test.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/short-urls/SearchBar.test.tsx b/test/short-urls/SearchBar.test.tsx index 2567b8e1..833893d0 100644 --- a/test/short-urls/SearchBar.test.tsx +++ b/test/short-urls/SearchBar.test.tsx @@ -7,6 +7,7 @@ import SearchField from '../../src/utils/SearchField'; import Tag from '../../src/tags/helpers/Tag'; import { DateRangeSelector } from '../../src/utils/dates/DateRangeSelector'; import ColorGenerator from '../../src/utils/services/ColorGenerator'; +import { SelectedServer } from '../../src/servers/data'; jest.mock('react-router-dom', () => ({ ...jest.requireActual('react-router-dom'), @@ -24,7 +25,7 @@ describe('', () => { (useLocation as any).mockReturnValue({ search }); (useNavigate as any).mockReturnValue(navigate); - wrapper = shallow(); + wrapper = shallow(()} />); return wrapper; };