From 5a5122e7e3e7e9ba093dc643d6a512a3eacb0fe9 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Date: Wed, 18 Mar 2020 18:23:48 +0100 Subject: [PATCH] BarGauge: Fix strict null that breaks Storybook build (#22871) --- packages/grafana-ui/src/components/BarGauge/BarGauge.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/grafana-ui/src/components/BarGauge/BarGauge.test.tsx b/packages/grafana-ui/src/components/BarGauge/BarGauge.test.tsx index 4ba1d9d1b9b..251f2ce9d4a 100644 --- a/packages/grafana-ui/src/components/BarGauge/BarGauge.test.tsx +++ b/packages/grafana-ui/src/components/BarGauge/BarGauge.test.tsx @@ -69,12 +69,12 @@ describe('BarGauge', () => { describe('Get value color', () => { it('should get the threshold color if value is same as a threshold', () => { const props = getProps(); - props.value = props.display(70); + props.value = props.display!(70); expect(getValueColor(props)).toEqual(orange); }); it('should get the base threshold', () => { const props = getProps(); - props.value = props.display(-10); + props.value = props.display!(-10); expect(getValueColor(props)).toEqual(green); }); });