Merge pull request #3337 from facebook/cpojer-patch-2

"Better" duck typing in reactComponentExpect
This commit is contained in:
Paul O’Shannessy
2015-03-09 13:45:50 -07:00
+1 -2
View File
@@ -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;
},