From b2adcda421c1124ac35d56b9b36219863440f427 Mon Sep 17 00:00:00 2001 From: shahzad Date: Fri, 1 May 2020 13:38:12 +0200 Subject: [PATCH] var renmae --- .../overview/monitor_list/__tests__/monitor_list.test.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/monitor_list.test.tsx b/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/monitor_list.test.tsx index 562c0cec3280c..9dd44f5176664 100644 --- a/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/monitor_list.test.tsx +++ b/x-pack/plugins/uptime/public/components/overview/monitor_list/__tests__/monitor_list.test.tsx @@ -19,11 +19,11 @@ describe('MonitorList component', () => { let localStorageMock: any; beforeEach(() => { - const spy = jest.spyOn(redux, 'useDispatch'); - spy.mockReturnValue(jest.fn()); + const useDispatchSpy = jest.spyOn(redux, 'useDispatch'); + useDispatchSpy.mockReturnValue(jest.fn()); - const spy1 = jest.spyOn(redux, 'useSelector'); - spy1.mockReturnValue(true); + const useSelectorSpy = jest.spyOn(redux, 'useSelector'); + useSelectorSpy.mockReturnValue(true); localStorageMock = { getItem: jest.fn().mockImplementation(() => '25'),