diff --git a/public/app/features/datasources/components/EmptyStateNoDatasource.test.tsx b/public/app/features/datasources/components/EmptyStateNoDatasource.test.tsx index e7bac90d8c0..e0fd8ce982f 100644 --- a/public/app/features/datasources/components/EmptyStateNoDatasource.test.tsx +++ b/public/app/features/datasources/components/EmptyStateNoDatasource.test.tsx @@ -15,12 +15,10 @@ import 'whatwg-fetch'; import { EmptyStateNoDatasource } from './EmptyStateNoDatasource'; let reportInteractionSpy: jest.SpyInstance; -let hasRole: jest.SpyInstance; - const server = setupServer(); beforeEach(() => { - hasRole = jest.spyOn(contextSrv, 'hasRole').mockReturnValue(true); + jest.spyOn(contextSrv, 'hasRole').mockReturnValue(true); reportInteractionSpy = jest.spyOn(runtime, 'reportInteraction'); server.resetHandlers(); });