Merge pull request #30111 from MrFranke/patch-1

Enzyme. Add argument to .exists method
This commit is contained in:
Armando Aguirre
2018-11-05 15:08:29 -08:00
committed by GitHub
+1 -1
View File
@@ -101,7 +101,7 @@ export interface CommonWrapper<P = {}, S = {}, C = Component<P, S>> {
/**
* Returns whether or not the current node exists.
*/
exists(): boolean;
exists(selector?: EnzymeSelector): boolean;
/**
* Returns a new wrapper with only the nodes of the current wrapper that don't match the provided selector.