Commit 95bf0647 by Ivana Huckova Committed by GitHub

Chore: Fix failing master due to strictNullCheck error (#26283)

* Fix typecheck error on master

* Fix typecheck error on master
parent 73468e14
......@@ -52,15 +52,12 @@ describe('JaegerQueryField', function() {
);
// Simulating selection options. We need this as the function depends on the intermediate state of the component
await wrapper
.find(ButtonCascader)
.props()
.loadData([{ value: 'service/test', label: 'service/test' }]);
await wrapper.find(ButtonCascader)!.props().loadData!([{ value: 'service/test', label: 'service/test' }]);
wrapper.update();
expect(wrapper.find(ButtonCascader).props().options[0].label).toEqual('service/test');
expect(wrapper.find(ButtonCascader).props().options[0].value).toEqual('service/test');
expect(wrapper.find(ButtonCascader).props().options[0].children[1]).toEqual({
expect(wrapper.find(ButtonCascader).props().options![0].children![1]).toEqual({
isLeaf: false,
label: 'op1',
value: 'op1',
......
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