From f67e02cb2f367aee13e46b04d6232edc13875c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Wed, 9 Feb 2022 14:14:37 +0100 Subject: [PATCH] Chore: Removes console.log in annotations_srv.test.ts (#45135) --- .../angular/services/annotations_srv.test.ts | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 public/app/angular/services/annotations_srv.test.ts diff --git a/public/app/angular/services/annotations_srv.test.ts b/public/app/angular/services/annotations_srv.test.ts deleted file mode 100644 index 621cdff0895..00000000000 --- a/public/app/angular/services/annotations_srv.test.ts +++ /dev/null @@ -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); - }); - }); -});