Skip to content

Commit 213d584

Browse files
committed
Remove spy
It breaks the other tests.
1 parent fdfec40 commit 213d584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-dom/src/__tests__/ReactComponent-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ describe('ReactComponent', () => {
134134

135135
// @gate !disableStringRefs
136136
it('string refs do not detach and reattach on every render', async () => {
137-
spyOnDev(console, 'error').mockImplementation(() => {});
138-
139137
let refVal;
140138
class Child extends React.Component {
141139
componentDidUpdate() {
@@ -174,6 +172,8 @@ describe('ReactComponent', () => {
174172
root.render(<Parent />);
175173
});
176174

175+
assertConsoleErrorDev(['contains the string ref']);
176+
177177
expect(refVal).toBe(undefined);
178178
await act(() => {
179179
root.render(<Parent showChild={true} />);

0 commit comments

Comments
 (0)