Commit 5a5122e7 by Tobias Skarhed Committed by GitHub

BarGauge: Fix strict null that breaks Storybook build (#22871)

parent bb05989e
...@@ -69,12 +69,12 @@ describe('BarGauge', () => { ...@@ -69,12 +69,12 @@ describe('BarGauge', () => {
describe('Get value color', () => { describe('Get value color', () => {
it('should get the threshold color if value is same as a threshold', () => { it('should get the threshold color if value is same as a threshold', () => {
const props = getProps(); const props = getProps();
props.value = props.display(70); props.value = props.display!(70);
expect(getValueColor(props)).toEqual(orange); expect(getValueColor(props)).toEqual(orange);
}); });
it('should get the base threshold', () => { it('should get the base threshold', () => {
const props = getProps(); const props = getProps();
props.value = props.display(-10); props.value = props.display!(-10);
expect(getValueColor(props)).toEqual(green); expect(getValueColor(props)).toEqual(green);
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment