You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I upgraded from beta.0 to beta.1 and a test case broke. This snippet demonstrates the bug:
importReactfrom'react'importchaifrom'chai'importchaiAsPromisedfrom'chai-as-promised'importsinonChaifrom'sinon-chai'importsinonfrom'sinon'importchaiEnzymefrom'chai-enzyme'importEnzyme,{shallow}from'enzyme'importAdapterfrom'enzyme-adapter-react-16'global.should=chai.should()global.expect=chai.expectchai.use(chaiAsPromised)chai.use(sinonChai)chai.use(chaiEnzyme())global.sinon=sinonEnzyme.configure({adapter: newAdapter()})describe.only('Example',()=>{it('does not compare with html',()=>{constwrapper=shallow(<div><divclassName='example'/></div>)wrapper.find('.example').should.have.html('<div class="example"/>')})})
output:
0 passing (523ms)
1 failing
1) Example
does not compare with html:
AssertionError: expected the node in <div /> to be '<div class="example"/>', but it was '<div className="example" />'
HTML:
<div className="example" />
+ expected - actual
-<div className="example" />
+<div class="example"/>
I upgraded from beta.0 to beta.1 and a test case broke. This snippet demonstrates the bug:
output:
relevant dependencies:
The text was updated successfully, but these errors were encountered: