diff --git a/types/enzyme/enzyme-tests.tsx b/types/enzyme/enzyme-tests.tsx index b92f553584..0c7e2c2e90 100644 --- a/types/enzyme/enzyme-tests.tsx +++ b/types/enzyme/enzyme-tests.tsx @@ -868,10 +868,10 @@ function ReactWrapperTest() { function test_component_type() { const wrapper1 = shallow(
); - wrapper1.find(ComponentType).props().stringProp; // $ExpectType string + wrapper1.find(ComponentType).props().stringProp; // $ExpectType string const wrapper2 = mount(
); - wrapper2.find(ComponentType).props().stringProp; // $ExpectType string + wrapper2.find(ComponentType).props().stringProp; // $ExpectType string } }