mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TemplateSrv: Refactoring out all formats to a formatRegistry (#26607)
This commit is contained in:
@@ -595,11 +595,6 @@ describe('templateSrv', () => {
|
||||
initTemplateSrv([]);
|
||||
});
|
||||
|
||||
it('should be possible to fetch value with getBuilInIntervalValue', () => {
|
||||
const val = _templateSrv.getBuiltInIntervalValue();
|
||||
expect(val).toBe('1s');
|
||||
});
|
||||
|
||||
it('should replace $__interval_ms with interval milliseconds', () => {
|
||||
const target = _templateSrv.replace('10 * $__interval_ms', {
|
||||
__interval_ms: { text: '100', value: '100' },
|
||||
|
||||
Reference in New Issue
Block a user