Skip to content

Commit

Permalink
Revert "match display name of profiler in devtools"
Browse files Browse the repository at this point in the history
This reverts commit 2a9de42.

It was deliberately changed in react: facebook/react@9c990c2#r202042053
  • Loading branch information
eps1lon committed Mar 17, 2019
1 parent e1bde53 commit 33b59b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ class ReactSixteenAdapter extends EnzymeAdapter {
case (is166 ? ConcurrentMode : AsyncMode) || NaN: return is166 ? 'ConcurrentMode' : 'AsyncMode';
case Fragment || NaN: return 'Fragment';
case StrictMode || NaN: return 'StrictMode';
case Profiler || NaN: return `Profiler(${node.props.id})`;
case Profiler || NaN: return 'Profiler';
case Portal || NaN: return 'Portal';
default:
}
Expand Down
2 changes: 1 addition & 1 deletion packages/enzyme-test-suite/test/Adapter-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ describe('Adapter', () => {
});

itIf(is('>= 16.4'), 'supports Profiler', () => {
expect(getDisplayName(<Profiler id="example" />)).to.equal('Profiler(example)');
expect(getDisplayName(<Profiler />)).to.equal('Profiler');
});

itIf(is('>= 16.6'), 'supports ConcurrentMode', () => {
Expand Down

0 comments on commit 33b59b9

Please sign in to comment.