mirror of
https://github.com/grafana/grafana.git
synced 2025-09-26 15:53:58 +08:00
Explore: Fix auto completion on label values for Loki (#18988)
This commit is contained in:
@ -5,11 +5,10 @@ import { AbsoluteTimeRange } from '@grafana/data';
|
||||
import LanguageProvider from 'app/plugins/datasource/loki/language_provider';
|
||||
import { useLokiSyntax } from './useLokiSyntax';
|
||||
import { CascaderOption } from 'app/plugins/datasource/loki/components/LokiQueryFieldForm';
|
||||
import { makeMockLokiDatasource } from '../mocks';
|
||||
|
||||
describe('useLokiSyntax hook', () => {
|
||||
const datasource = {
|
||||
metadataRequest: () => ({ data: { data: [] as any[] } }),
|
||||
};
|
||||
const datasource = makeMockLokiDatasource({});
|
||||
const languageProvider = new LanguageProvider(datasource);
|
||||
const logLabelOptionsMock = ['Holy mock!'];
|
||||
const logLabelOptionsMock2 = ['Mock the hell?!'];
|
||||
|
Reference in New Issue
Block a user