mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Update reactComponentExpect.js
This commit is contained in:
@@ -125,8 +125,7 @@ assign(reactComponentExpectInternal.prototype, {
|
||||
toBeCompositeComponent: function() {
|
||||
expect(
|
||||
typeof this.instance() === 'object' &&
|
||||
typeof this.instance().render === 'function' &&
|
||||
typeof this.instance().setState === 'function'
|
||||
typeof this.instance().render === 'function'
|
||||
).toBe(true);
|
||||
return this;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user