Merge pull request #19560 from matiasponce/master

CommonWrapper accepts ReactElements and strings in contains method - types/enzyme/index
This commit is contained in:
Nathan Shively-Sanders
2017-09-05 12:54:07 -07:00
committed by GitHub

View File

@@ -56,7 +56,7 @@ export interface CommonWrapper<P = {}, S = {}> {
* Returns whether or not the current wrapper has a node anywhere in it's render tree that looks like the one passed in.
* @param node
*/
contains(node: ReactElement<any>): boolean;
contains(node: ReactElement<any> | string): boolean;
/**
* Returns whether or not a given react element exists in the shallow render tree.