dillon1000/react

Commit

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.
Browse files
Changed paths1 file
First-parent comparison
M src/dom/__tests__/Danger-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…