Loki: Remove some of any assertions from tests (#53114)

* Loki: Remove some of any assertions from tests

* Remove unnecessary as assertions
This commit is contained in:
Ivana Huckova
2022-08-03 15:57:38 +02:00
committed by GitHub
parent 1c1f72b1aa
commit 3877964470
4 changed files with 20 additions and 24 deletions

View File

@@ -1,6 +1,7 @@
import { render, screen } from '@testing-library/react';
import React from 'react';
import { DataSourcePluginMeta } from '@grafana/data';
import { addOperation } from 'app/plugins/datasource/prometheus/querybuilder/shared/OperationList.testUtils';
import { LokiDatasource } from '../../datasource';
@@ -23,7 +24,7 @@ describe('LokiQueryBuilderContainer', () => {
access: 'proxy',
url: '',
jsonData: {},
meta: {} as any,
meta: {} as DataSourcePluginMeta,
},
undefined,
undefined

View File

@@ -3,6 +3,7 @@ import userEvent from '@testing-library/user-event';
import { cloneDeep, defaultsDeep } from 'lodash';
import React from 'react';
import { DataSourcePluginMeta } from '@grafana/data';
import { QueryEditorMode } from 'app/plugins/datasource/prometheus/querybuilder/shared/types';
import { LokiDatasource } from '../../datasource';
@@ -44,7 +45,7 @@ const datasource = new LokiDatasource(
access: 'proxy',
url: '',
jsonData: {},
meta: {} as any,
meta: {} as DataSourcePluginMeta,
},
undefined,
undefined