mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 19:52:33 -06:00
Chore: remove any from test (#53260)
This commit is contained in:
parent
64967325b2
commit
6f01930e9d
@ -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"]
|
||||
|
@ -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>) {
|
||||
|
Loading…
Reference in New Issue
Block a user