Skip to content

Commit 4bd7de1

Browse files
committed
Fix type issue in test
1 parent ec18883 commit 4bd7de1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/scenes/src/variables/variants/DataSourceVariable.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { lastValueFrom } from 'rxjs';
33
import { DataSourceInstanceSettings, ScopedVars, PluginType } from '@grafana/data';
44

55
import { SceneObject } from '../../core/types';
6-
import { CustomFormatterFn } from '../interpolation/sceneInterpolator';
76

87
import { DataSourceVariable } from './DataSourceVariable';
8+
import { VariableCustomFormatterFn } from '../types';
99

1010
function getDataSource(name: string, type: string, isDefault = false): DataSourceInstanceSettings {
1111
return {
@@ -58,7 +58,7 @@ jest.mock('../../core/sceneGraph', () => {
5858
sceneObject: SceneObject,
5959
value: string | undefined | null,
6060
scopedVars?: ScopedVars,
61-
format?: string | CustomFormatterFn
61+
format?: string | VariableCustomFormatterFn
6262
) => {
6363
return value?.replace('$variable-1', 'slow');
6464
},

0 commit comments

Comments
 (0)