mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 19:32:37 +08:00
Pyroscope: Remove "phlare" from variable, types, strings etc (#75140)
This commit is contained in:
@ -5,8 +5,8 @@ import { DataSourceInstanceSettings } from '@grafana/data';
|
||||
import { TemplateSrv } from 'app/features/templating/template_srv';
|
||||
|
||||
import { VariableQueryEditor } from './VariableQueryEditor';
|
||||
import { PhlareDataSource } from './datasource';
|
||||
import { PhlareDataSourceOptions } from './types';
|
||||
import { PyroscopeDataSource } from './datasource';
|
||||
import { PyroscopeDataSourceOptions } from './types';
|
||||
|
||||
describe('VariableQueryEditor', () => {
|
||||
it('renders correctly with type profileType', () => {
|
||||
@ -69,7 +69,7 @@ describe('VariableQueryEditor', () => {
|
||||
});
|
||||
|
||||
function getMockDatasource() {
|
||||
const ds = new PhlareDataSource({} as DataSourceInstanceSettings<PhlareDataSourceOptions>, new TemplateSrv());
|
||||
const ds = new PyroscopeDataSource({} as DataSourceInstanceSettings<PyroscopeDataSourceOptions>, new TemplateSrv());
|
||||
ds.getResource = jest.fn();
|
||||
(ds.getResource as jest.Mock).mockImplementation(async (type: string) => {
|
||||
if (type === 'profileTypes') {
|
||||
|
Reference in New Issue
Block a user