From 38adb22b0a795bcc450f9f24801edd1a81c4d3e3 Mon Sep 17 00:00:00 2001 From: Brandon Dail Date: Mon, 21 Aug 2017 15:39:07 -0500 Subject: [PATCH] Remove invalid attribute test --- .../test/ReactWrapper-spec.jsx | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/enzyme-test-suite/test/ReactWrapper-spec.jsx b/packages/enzyme-test-suite/test/ReactWrapper-spec.jsx index 7b5e3a5c4..073c8c442 100644 --- a/packages/enzyme-test-suite/test/ReactWrapper-spec.jsx +++ b/packages/enzyme-test-suite/test/ReactWrapper-spec.jsx @@ -446,24 +446,6 @@ describeWithDOM('mount', () => { expect(wrapper.find('[type=text]')).to.have.lengthOf(2); }); - // React 15.2 warns when setting a non valid prop to an DOM element - describeIf(REACT013 || REACT014, 'unauthorized dom props', () => { - it('should not find components with invalid attributes', () => { - // Invalid attributes aren't valid JSX, so manual instantiation is necessary - const wrapper = mount( - React.createElement('div', null, React.createElement('span', { - '123-foo': 'bar', - '-foo': 'bar', - '+foo': 'bar', - })), - ); - - expect(wrapper.find('[-foo]')).to.have.length(0, '-foo'); - expect(wrapper.find('[+foo]')).to.have.length(0, '+foo'); - expect(wrapper.find('[123-foo]')).to.have.length(0, '123-foo'); - }); - }); - it('should support data prop selectors', () => { const wrapper = mount(