dillon1000/react
Commit
Browse files Fix MultiChild tests so they work with Fiber
Dropped the unnecessary use of findDOMNode. Dropped unnecessary arrow functions. Math.random() -> id counter, since this used to be non-deterministic which is not ideal for unit tests. getOriginalKeys() used to rely on implementation details to scan that the internal data structure maintained its structure, however, since that is unobservable we don't need to test the internal data structure itself. We're already testing refs and dom structure which is the only observable effect of the reorder.
Changed paths2 files
First-parent comparisonsrc/renderers/shared/stack/reconciler/__tests__/ReactMultiChildReconcile-test.js ModifiedM src/renderers/shared/stack/reconciler/__tests__/ReactMultiChildText-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…