mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
Primarily- moving majority of the types and utils from @grafana/ui to @grafana/data * Move types from grafana-ui to grafana-data * Move valueFormats to grafana-data * Move utils from grafana-ui to grafana-data * Update imports in grafana-ui * revert data's tsconfig change * Update imports in grafana-runtime * Fix import paths in grafana-ui * Move rxjs to devDeps * Core import updates batch 1 * Import updates batch 2 * Imports fix batch 3 * Imports fixes batch i don't know * Fix imorts in grafana-toolkit * Fix imports after master merge
31 lines
490 B
TypeScript
31 lines
490 B
TypeScript
import { DataQuery } from '@grafana/data';
|
|
import { getNextRefIdChar } from './query';
|
|
|
|
const dataQueries: DataQuery[] = [
|
|
{
|
|
refId: 'A',
|
|
},
|
|
{
|
|
refId: 'B',
|
|
},
|
|
{
|
|
refId: 'C',
|
|
},
|
|
{
|
|
refId: 'D',
|
|
},
|
|
{
|
|
refId: 'E',
|
|
},
|
|
];
|
|
|
|
describe('Get next refId char', () => {
|
|
it('should return next char', () => {
|
|
expect(getNextRefIdChar(dataQueries)).toEqual('F');
|
|
});
|
|
|
|
it('should get first char', () => {
|
|
expect(getNextRefIdChar([])).toEqual('A');
|
|
});
|
|
});
|