mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Removes console.log in annotations_srv.test.ts (#45135)
This commit is contained in:
parent
c25031fa49
commit
f67e02cb2f
@ -1,30 +0,0 @@
|
||||
import { AnnotationsSrv } from './annotations_srv';
|
||||
|
||||
describe('AnnotationsSrv', () => {
|
||||
const annotationsSrv = new AnnotationsSrv();
|
||||
|
||||
describe('When translating the query result', () => {
|
||||
const annotationSource = {
|
||||
datasource: '-- Grafana --',
|
||||
enable: true,
|
||||
hide: false,
|
||||
limit: 200,
|
||||
name: 'test',
|
||||
scope: 'global',
|
||||
tags: ['test'],
|
||||
type: 'event',
|
||||
};
|
||||
|
||||
const time = 1507039543000;
|
||||
const annotations = [{ id: 1, panelId: 1, text: 'text', time: time }];
|
||||
let translatedAnnotations: any;
|
||||
|
||||
beforeEach(() => {
|
||||
translatedAnnotations = annotationsSrv.translateQueryResult(annotationSource, annotations);
|
||||
});
|
||||
|
||||
it('should set defaults', () => {
|
||||
expect(translatedAnnotations[0].source).toEqual(annotationSource);
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user