From 61e3a0ccebef255c48da2b951f1cfb23628c96a4 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed Date: Fri, 3 Aug 2018 11:57:03 +0200 Subject: [PATCH 1/2] Begin conversion --- public/test/specs/app.jest.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 public/test/specs/app.jest.ts diff --git a/public/test/specs/app.jest.ts b/public/test/specs/app.jest.ts new file mode 100644 index 00000000000..0e15ab8234d --- /dev/null +++ b/public/test/specs/app.jest.ts @@ -0,0 +1,10 @@ +import { GrafanaApp } from 'app/app'; +jest.mock('app/routes/routes'); + +describe('GrafanaApp', () => { + var app = new GrafanaApp(); + + it('can call inits', () => { + expect(app).not.toBe(null); + }); +}); From 61eb96ed79818cb317beeba3f866262807412db3 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed Date: Fri, 3 Aug 2018 12:34:13 +0200 Subject: [PATCH 2/2] Remove simple tests --- .../features/alerting/specs/alert_tab_specs.ts | 17 ----------------- .../dashboard/specs/dashboard_srv_specs.ts | 15 --------------- public/test/specs/app.jest.ts | 10 ---------- public/test/specs/app_specs.ts | 14 -------------- 4 files changed, 56 deletions(-) delete mode 100644 public/app/features/alerting/specs/alert_tab_specs.ts delete mode 100644 public/app/features/dashboard/specs/dashboard_srv_specs.ts delete mode 100644 public/test/specs/app.jest.ts delete mode 100644 public/test/specs/app_specs.ts diff --git a/public/app/features/alerting/specs/alert_tab_specs.ts b/public/app/features/alerting/specs/alert_tab_specs.ts deleted file mode 100644 index 4a4de34fe6c..00000000000 --- a/public/app/features/alerting/specs/alert_tab_specs.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { describe, it, expect } from 'test/lib/common'; - -import { AlertTabCtrl } from '../alert_tab_ctrl'; - -describe('AlertTabCtrl', () => { - var $scope = { - ctrl: {}, - }; - - describe('with null parameters', () => { - it('can be created', () => { - var alertTab = new AlertTabCtrl($scope, null, null, null, null, null); - - expect(alertTab).to.not.be(null); - }); - }); -}); diff --git a/public/app/features/dashboard/specs/dashboard_srv_specs.ts b/public/app/features/dashboard/specs/dashboard_srv_specs.ts deleted file mode 100644 index 0faa7531652..00000000000 --- a/public/app/features/dashboard/specs/dashboard_srv_specs.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { describe, beforeEach, expect } from 'test/lib/common'; - -import { DashboardSrv } from '../dashboard_srv'; - -describe('dashboardSrv', function() { - var _dashboardSrv; - - beforeEach(() => { - _dashboardSrv = new DashboardSrv({}, {}, {}); - }); - - it('should do something', () => { - expect(_dashboardSrv).not.to.be(null); - }); -}); diff --git a/public/test/specs/app.jest.ts b/public/test/specs/app.jest.ts deleted file mode 100644 index 0e15ab8234d..00000000000 --- a/public/test/specs/app.jest.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { GrafanaApp } from 'app/app'; -jest.mock('app/routes/routes'); - -describe('GrafanaApp', () => { - var app = new GrafanaApp(); - - it('can call inits', () => { - expect(app).not.toBe(null); - }); -}); diff --git a/public/test/specs/app_specs.ts b/public/test/specs/app_specs.ts deleted file mode 100644 index f82946c20a2..00000000000 --- a/public/test/specs/app_specs.ts +++ /dev/null @@ -1,14 +0,0 @@ -import {describe, it, expect} from 'test/lib/common'; - -import {GrafanaApp} from 'app/app'; - -describe('GrafanaApp', () => { - - var app = new GrafanaApp(); - - it('can call inits', () => { - expect(app).to.not.be(null); - }); -}); - -