mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
BarGauge: Fix strict null that breaks Storybook build (#22871)
This commit is contained in:
parent
bb05989e43
commit
5a5122e7e3
@ -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);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user