Skip to content

Commit 04d4a3b

Browse files
committed
Fix getWrappedInstance test
Single ref access cannot work anymore. Prefer the getter
1 parent 05ef521 commit 04d4a3b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/components/connect.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,6 @@ describe('React', () => {
10971097

10981098
expect(() => decorated.someInstanceMethod()).toThrow();
10991099
expect(decorated.getWrappedInstance().someInstanceMethod()).toBe(someData);
1100-
expect(decorated.refs.wrappedInstance.someInstanceMethod()).toBe(someData);
11011100
});
11021101

11031102
it('should wrap impure components without supressing updates', () => {

0 commit comments

Comments
 (0)