From f3ff3c1aec67d9ba1b762fef2a5b45149c2e4b6a Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Thu, 21 Feb 2019 14:44:21 +0100 Subject: [PATCH] fixed tests --- .../BarGauge/__snapshots__/BarGauge.test.tsx.snap | 4 +++- public/app/features/dashboard/state/PanelModel.test.ts | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/grafana-ui/src/components/BarGauge/__snapshots__/BarGauge.test.tsx.snap b/packages/grafana-ui/src/components/BarGauge/__snapshots__/BarGauge.test.tsx.snap index 6da70cade2f..c93cfd18f93 100644 --- a/packages/grafana-ui/src/components/BarGauge/__snapshots__/BarGauge.test.tsx.snap +++ b/packages/grafana-ui/src/components/BarGauge/__snapshots__/BarGauge.test.tsx.snap @@ -2,10 +2,12 @@ exports[`Render BarGauge with basic options should render 1`] = `
{ describe('when creating new panel model', () => { @@ -66,7 +65,7 @@ describe('PanelModel', () => { describe('when changing panel type', () => { beforeEach(() => { - model.changeType('graph', true); + model.changeType('graph'); model.alert = { id: 2 }; }); @@ -75,12 +74,12 @@ describe('PanelModel', () => { }); it('should restore table properties when changing back', () => { - model.changeType('table', true); + model.changeType('table'); expect(model.showColumns).toBe(true); }); it('should remove alert rule when changing type that does not support it', () => { - model.changeType('table', true); + model.changeType('table'); expect(model.alert).toBe(undefined); }); });