We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi @developit , I wrote a simple example, but it didn't run as expect.
function Cmp() { return <div>cmp</div> } class Test extends Component { render() { return ( <div><Cmp/></div> ); } } describe('Preact Test', function() { it('<Test/>', function() { expect(<Test />).to.deep.equal(<div><div>cmp</div></div>); }); });
the error message is
Preact Test ✗ <Test/> AssertionError: expected '<div>\n <Cmp></Cmp>\n</div>' to equal '<div>\n <div>cmp</div>\n</div>' Chrome 55.0.2883 (Mac OS X 10.11.4) Preact Test <Test/> FAILED AssertionError: expected '<div>\n <Cmp></Cmp>\n</div>' to equal '<div>\n <div>cmp</div>\n</div>' Chrome 55.0.2883 (Mac OS X 10.11.4): Executed 1 of 1 (1 FAILED) ERROR (1.362 secs / 0.005 secs)
The text was updated successfully, but these errors were encountered:
Hmm - that is very strange.
Sorry, something went wrong.
No branches or pull requests
hi @developit , I wrote a simple example, but it didn't run as expect.
the error message is

The text was updated successfully, but these errors were encountered: