diff --git a/.betterer.results b/.betterer.results index c21140c7fc4..94c1f2f99ca 100644 --- a/.betterer.results +++ b/.betterer.results @@ -7521,10 +7521,6 @@ exports[`better eslint`] = { "public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilderContainer.tsx:5381": [ [0, 0, 0, "Do not use any type assertions.", "0"] ], - "public/app/plugins/datasource/loki/querybuilder/components/LokiQueryEditorSelector.test.tsx:5381": [ - [0, 0, 0, "Unexpected any. Specify a different type.", "0"], - [0, 0, 0, "Unexpected any. Specify a different type.", "1"] - ], "public/app/plugins/datasource/loki/querybuilder/parsing.ts:5381": [ [0, 0, 0, "Unexpected any. Specify a different type.", "0"], [0, 0, 0, "Do not use any type assertions.", "1"] diff --git a/public/app/plugins/datasource/loki/querybuilder/components/LokiQueryEditorSelector.test.tsx b/public/app/plugins/datasource/loki/querybuilder/components/LokiQueryEditorSelector.test.tsx index 8f8e31476fe..749ca6a0634 100644 --- a/public/app/plugins/datasource/loki/querybuilder/components/LokiQueryEditorSelector.test.tsx +++ b/public/app/plugins/datasource/loki/querybuilder/components/LokiQueryEditorSelector.test.tsx @@ -25,7 +25,7 @@ jest.mock('app/core/store', () => { return undefined; }, set() {}, - getObject(key: string, defaultValue: any) { + getObject(key: string, defaultValue: unknown) { return defaultValue; }, }; @@ -162,7 +162,7 @@ describe('LokiQueryEditorSelector', () => { }); function renderWithMode(mode: QueryEditorMode) { - return renderWithProps({ editorMode: mode } as any); + return renderWithProps({ editorMode: mode }); } function renderWithProps(overrides?: Partial) {