From 76f78c0f720bd87b450f9f69b6b03705abbe5caf Mon Sep 17 00:00:00 2001 From: bergquist Date: Tue, 13 Dec 2016 09:49:33 +0100 Subject: [PATCH] test(alert_tab): basic test skeleton I created this test by misstake. But instead of deleting it I thought it might be good to keep it to make it easier to add tests for the alert tab --- .../alerting/specs/alert_tab_specs.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 public/app/features/alerting/specs/alert_tab_specs.ts diff --git a/public/app/features/alerting/specs/alert_tab_specs.ts b/public/app/features/alerting/specs/alert_tab_specs.ts new file mode 100644 index 00000000000..3c407297dee --- /dev/null +++ b/public/app/features/alerting/specs/alert_tab_specs.ts @@ -0,0 +1,20 @@ +import {describe, beforeEach, it, sinon, expect, angularMocks} from 'test/lib/common'; + +import {AlertTabCtrl} from '../alert_tab_ctrl'; +import helpers from '../../../../test/specs/helpers'; + +describe('AlertTabCtrl', () => { + var $scope = { + ctrl: {} + }; + + describe('with null parameters', () => { + it('can be created', () => { + var alertTab = new AlertTabCtrl($scope, null, null, null, null, null, null, null); + + expect(alertTab).to.not.be(null); + }); + }); +}); + +