dillon1000/react
Commit
Browse files Fix `Danger` test failures.
The original tests were flawed because the `Danger` module exploits the fact that all React-generated markup has at least one attribute. This allows the module to extract node names from markup strings faster. However, the tests were passing in strings of markup with no attributes. Also, this fixes a test failure due to the test trying to set text content into a `<tr>` which is typically disallowed by browsers (and PhantomJS). This changes it to use `<td>` instead.
Changed paths1 file
First-parent comparisonsrc/dom/__tests__/Danger-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…