mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user