这里有2个使用onClick的事件,我正在尝试运行测试并确保它们通过。我正在使用Jest和酶-ReactJS
我想念什么?
事件1:
> git lfs install
> git lfs fetch
> git lfs pull
事件2
"PropertyNumber"|"CardNumber"|"BuildingFeatureTypeCode"|"DwellingFeatureTypeCode"|"Area"|"Depreciation"|"AllocatedValue"|"AllocatedVP"|"FeatureValue"|"OverrideSwitch"|"Rate"
"99-999959"|"001"|""|"ALC"|1.00000|.00000|.00000|.00000|8500.00000|.00000|8500.00000
"99-999959"|"001"|""|"W/S"|1.00000|.00000|.00000|.00000|.00000|.00000|.00000
"99-999199"|"001"|""|"W/S"|1.00000|.00000|.00000|.00000|.00000|.00000|.00000
"99-999299"|"001"|""|"W/S"|1.00000|.00000|.00000|.00000|.00000|.00000|.00000
"99-999259"|"001"|""|"W/S"|1.00000|.00000|.00000|.00000|.00000|.00000|.00000
对于这两个测试,我都会遇到相同的错误:
<td>
<div className={'add-header-green'} id='test-greenheader'onClick={ ()=>{this.handleChangeOnBlur()} }>+</div>
这是我的测试文件: 测试1:
<td>
<img className='remove-header' src={closeImg} id='test-closeimg' onClick={ ()=>{this.props.removeParameters(this.props.id)} } />
test2:
Method “simulate” is meant to be run on 1 node. 0 found instead.