Chore: remove any from test (#53260)

This commit is contained in:
Matias Chomicki 2022-08-08 11:26:12 +02:00 committed by GitHub
parent 64967325b2
commit 6f01930e9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -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"]

View File

@ -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<LokiQuery>) {